Freigeben über


Task.GetUserContext(IVsUserContext) Method

Definition

Creates a new user context.

public:
 virtual int GetUserContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUserContext ^ % ppctx);
public:
 int GetUserContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUserContext ^ &  ppctx);
int GetUserContext([Runtime::InteropServices::Out] Microsoft::VisualStudio::Shell::Interop::IVsUserContext const & & ppctx);
public int GetUserContext (out Microsoft.VisualStudio.Shell.Interop.IVsUserContext ppctx);
abstract member GetUserContext : IVsUserContext -> int
override this.GetUserContext : IVsUserContext -> int
Public Function GetUserContext (ByRef ppctx As IVsUserContext) As Integer

Parameters

ppctx
IVsUserContext

[out] The IVsUserContext that has been created.

Returns

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

Implements

Remarks

This method creates an empty IVsUserContext and adds the F1 keyword.

Applies to