Caution
UnknownWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.
Wraps objects the marshaler should marshal as a VT_UNKNOWN
.
public ref class UnknownWrapper sealed
[System.Obsolete("UnknownWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")]
public sealed class UnknownWrapper
public sealed class UnknownWrapper
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class UnknownWrapper
[<System.Obsolete("UnknownWrapper and support for marshalling to the VARIANT type may be unavailable in future releases.")>]
type UnknownWrapper = class
type UnknownWrapper = class
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
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
Constructors Properties Methods
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4