Variant::ToVariant Method (IntPtr)

 

Converts the given variant object to a Variant class object.

Namespace:   Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)

public:
static Variant ToVariant(
	IntPtr ptr
)

Parameters

ptr
Type: System::IntPtr

[in] An IntPtr to be marshaled as a variant object.

Return Value

Type: Microsoft.VisualStudio.Package::Variant

If 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.

Return to top
Show: