Marshals data of type VT_BSTR from managed to unmanaged code. This class cannot be inherited.
Assembly: mscorlib (in mscorlib.dll)
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.)
The String object in a object to marshal it as VT_BSTR. is useful when passing a null string to unmanaged code. Without , a null string is passed as VT_EMPTY; however, wrapping the string with ensures that the null string is passed as VT_BSTR.class controls how the wrapped object is marshaled when passed as VARIANT. You can wrap a
Available since 4.5
Available since 2.0
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.