IVsProvideUserContext2.GetUserContextEx Method

Gets a user context and priority for an object.

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

Syntax

'宣言
Function GetUserContextEx ( _
    <OutAttribute> ByRef ppctx As IVsUserContext, _
    <OutAttribute> ByRef iPriority As Integer _
) As Integer
'使用
Dim instance As IVsProvideUserContext2
Dim ppctx As IVsUserContext
Dim iPriority As Integer
Dim returnValue As Integer

returnValue = instance.GetUserContextEx(ppctx, _
    iPriority)
int GetUserContextEx(
    out IVsUserContext ppctx,
    out int iPriority
)
int GetUserContextEx(
    [OutAttribute] IVsUserContext^% ppctx, 
    [OutAttribute] int% iPriority
)
function GetUserContextEx(
    ppctx : IVsUserContext, 
    iPriority : int
) : int

Parameters

  • iPriority
    Type: System.Int32%

    [out] Integer. The priority.

Return Value

Type: System.Int32

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

Permissions

See Also

Reference

IVsProvideUserContext2 Interface

IVsProvideUserContext2 Members

Microsoft.VisualStudio.Shell.Interop Namespace