Variant.ToVariant(IntPtr) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Converts the given variant object to a Variant class object.
public:
static Microsoft::VisualStudio::Package::Variant ToVariant(IntPtr ptr);
public static Microsoft.VisualStudio.Package.Variant ToVariant (IntPtr ptr);
static member ToVariant : nativeint -> Microsoft.VisualStudio.Package.Variant
Public Shared Function ToVariant (ptr As IntPtr) As Variant
Parameters
Returns
If successful, returns a Variant object containing the value of the marshaled variant object; otherwise, returns an empty Variant object.
Remarks
This method is used by the HandlePreExec method on the ViewFilter class to convert the marshaled variant object to a language service-specified Variant object.