Share via


Task.GetUserContext Method

Creates a new user context.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'Declaration
Public Function GetUserContext ( _
    <OutAttribute> ByRef ppctx As IVsUserContext _
) As Integer
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

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

See Also

Reference

Task Class

Microsoft.VisualStudio.Shell Namespace