Share via


IDocumentSite2.GetObject(Object) Method

Definition

Returns the IDispatch interface of the object.

public:
 int GetObject([Runtime::InteropServices::Out] System::Object ^ % ppDisp);
int GetObject([Runtime::InteropServices::Out] winrt::Windows::Foundation::IInspectable const & & ppDisp);
public int GetObject (out object ppDisp);
abstract member GetObject : obj -> int
Public Function GetObject (ByRef ppDisp As Object) As Integer

Parameters

ppDisp
Object

[out] The IDispatch interface.

Returns

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

Remarks

COM Signature

From objext.idl:

[C++]

HRESULT IDocumentSite2::GetObject(  
   [out] IDispatch** ppDisp  
);  

Applies to