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
ppctx
Type: Microsoft.VisualStudio.Shell.Interop.IVsUserContext%[out] Pointer to the IVsUserContext interface.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsProvideUserContext2 Interface