IVsExtensibleObject.GetAutomationObject(String, Object) 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.
Returns an automation object.
public:
int GetAutomationObject(System::String ^ pszPropName, [Runtime::InteropServices::Out] System::Object ^ % ppDisp);
int GetAutomationObject(std::wstring const & pszPropName, [Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppDisp);
public int GetAutomationObject (string pszPropName, out object ppDisp);
abstract member GetAutomationObject : string * obj -> int
Public Function GetAutomationObject (pszPropName As String, ByRef ppDisp As Object) As Integer
Parameters
- pszPropName
- String
[in] The environment passes a null
when an automation consumer calls your automation object.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
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 Basic Edit Sample.