IVsPackage::GetAutomationObject Method (String^, Object^)
Visual Studio 2015
Enables a VSPackage to participate in the DTE automation object model.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Parameters
- pszPropName
-
Type:
System::String^
[in] Pointer to a null terminated string containing the prop name.
- ppDisp
-
Type:
System::Object^
[out] Pointer to the IDispatch interface.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From vsshell.idl:
HRESULT IVsPackage::GetAutomationObject(
[in] LPCOLESTR pszPropName,
[out] IDispatch **ppDisp
);
This method is optional and is implemented by VSPackages that want to extend the DTE Automation object model. Essentially, you can add objects to the DTE and event sources using this method.
Show: