Simon Mourier's Avatar
Simon Mourier's blog (1349 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c#
  • com
  • java

How can I make use of C# System.DBNull.value in Java?

Apr 30, 2013 See the question and my original answer on StackOverflow

.NET System.DBNull is equivalent to a VARIANT of type VT_NULL. In fact this is documented officially here: DBNull Class

So I suppose using com4j you can create a Variant, call setType(VT_NULL), and pass this to the .NET interop layer.

  • SmoBlog © 2010-2025 Simon Mourier. All rights reserved.
  • Privacy & Terms