This API is now obsolete.
Wraps objects the marshaler should marshal as a
public ref class UnknownWrapper sealed
[System.Runtime.InteropServices.ComVisible(true)] [System.Serializable] [System.Obsolete("UnknownWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")] public sealed class UnknownWrapper
type UnknownWrapper = class
Public NotInheritable Class UnknownWrapper
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
Initializes a new instance of the UnknownWrapper class with the object to be wrapped.
Gets the object contained by this wrapper.
Determines whether the specified object is equal to the current object.(Inherited from Object)
Serves as the default hash function.(Inherited from Object)
Gets the Type of the current instance.(Inherited from Object)
Creates a shallow copy of the current Object.(Inherited from Object)
Returns a string that represents the current object.(Inherited from Object)