IVsProvideUserContextForObject::GetObjectContext Method (Object^, IVsUserContext^)
Visual Studio 2015
Return the user context (IVsUserContext interface) of an object.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
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::Int32If 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 );
Show: