IVsExtensibleObject::GetAutomationObject Method (String^, Object^)

 

Returns an automation object.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

int GetAutomationObject(
	String^ pszPropName,
	[OutAttribute] Object^% ppDisp
)

Parameters

pszPropName
Type: System::String^

[in] The environment passes a null when an automation consumer calls your automation object.

ppDisp
Type: System::Object^

[out] Pointer to the IDispatch interface of the object to be returned.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From vsshell.idl:

HRESULT IVsExtensibleObject::GetAutomationObject(
   [in] LPCOLESTR pszPropName,
   [out] IDispatch **ppDisp
);

The environment calls this method when an automation consumer tries to use your the automation object of your VSPackage.

See illustrations of the implementation of this interface in the .f70f18ac-6544-465f-a031-5eba0ef02572

Return to top
Show: