IVsProvideUserContextForObject::GetObjectContext Method (Object^, IVsUserContext^)

 

Return the user context (IVsUserContext interface) of an object.

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

int GetObjectContext(
	Object^ punk,
	[OutAttribute] IVsUserContext^% ppctx
)

Parameters

punk
Type: System::Object^

[in] Pointer to the T:Microsoft.VisualStudio.IUnknown interface of the object.

ppctx
Type: Microsoft.VisualStudio.Shell.Interop::IVsUserContext^

[out] Pointer to the user context (IVsUserContext) of the object.

Return Value

Type: System::Int32

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

From context.idl:

[C++]

HRESULT IVsProvideUserContextForObject::GetObjectContext(
   [in] IUnknown * punk, 
   [out, retval] IVsUserContext ** ppctx
);
Return to top
Show: