Wraps objects the marshaler should marshal as a VT_UNKNOWN.
Assembly: mscorlib (in mscorlib.dll)
Initializes a new instance of theclass with the object to be wrapped.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
Only applies when the managed signature of a method takes an object.
int MyMethod(Object o); //Managed signature HRESULT MyMethod(VARIANT o); //COM signature MyObject o = new MyObject(); MyMethod(o); //o gets passed as VARIANT VT_DISPATCH MyMethod(new UnknownWrapper(o)); //o gets passed as VARIANT VT_UNKNOWN
Available since 4.5
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 8.1
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.