Dela via


IVsProvideUserContextForObject.GetObjectContext Method

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)

Syntax

'Declaration
Function GetObjectContext ( _
    punk As Object, _
    <OutAttribute> ByRef ppctx As IVsUserContext _
) As Integer
int GetObjectContext(
    Object punk,
    out IVsUserContext ppctx
)
int GetObjectContext(
    [InAttribute] Object^ punk, 
    [OutAttribute] IVsUserContext^% ppctx
)
abstract GetObjectContext : 
        punk:Object * 
        ppctx:IVsUserContext byref -> int
function GetObjectContext(
    punk : Object, 
    ppctx : IVsUserContext
) : int

Parameters

  • punk
    Type: Object

    [in] Pointer to the IUnknown interface of the object.

Return Value

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

Remarks

COM Signature

From context.idl:

[C++]

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

.NET Framework Security

See Also

Reference

IVsProvideUserContextForObject Interface

Microsoft.VisualStudio.Shell.Interop Namespace