Task.GetUserContext Method
Creates a new user context.
Namespace: Microsoft.VisualStudio.Shell
Assemblies: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'Dichiarazione
Public Function GetUserContext ( _
<OutAttribute> ByRef ppctx As IVsUserContext _
) As Integer
'Utilizzo
Dim instance As Task
Dim ppctx As IVsUserContext
Dim returnValue As Integer
returnValue = instance.GetUserContext(ppctx)
public int GetUserContext(
out IVsUserContext ppctx
)
public:
virtual int GetUserContext(
[OutAttribute] IVsUserContext^% ppctx
) sealed
abstract GetUserContext :
ppctx:IVsUserContext byref -> int
override GetUserContext :
ppctx:IVsUserContext byref -> int
public final function GetUserContext(
ppctx : IVsUserContext
) : int
Parameters
- ppctx
Type: Microsoft.VisualStudio.Shell.Interop.IVsUserContext%
[out] The IVsUserContext that has been created.
Return Value
Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Implements
IVsProvideUserContext.GetUserContext(IVsUserContext%)
Remarks
This method creates an empty IVsUserContext and adds the F1 keyword.
.NET Framework Security
- 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.