Variant::ToVariant Method (IntPtr)
Visual Studio 2015
Converts the given variant object to a Variant class object.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- ptr
-
Type:
System::IntPtr
[in] An IntPtr to be marshaled as a variant object.
Return Value
Type: Microsoft.VisualStudio.Package::VariantIf successful, returns a Variant object containing the value of the marshaled variant object; otherwise, returns an empty Variant object.
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.
Show: