你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

RMProfileClient.TryRemoveContext Method

Definition

Overloads

TryRemoveContext(IAzureContext)

Remove the given context

TryRemoveContext(String)

Remove the given named context

TryRemoveContext(IAzureContext)

Remove the given context

public bool TryRemoveContext (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context);
member this.TryRemoveContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> bool
Public Function TryRemoveContext (context As IAzureContext) As Boolean

Parameters

context
IAzureContext

The context to remove

Returns

true if the context was found and removed, otherwise false

Applies to

TryRemoveContext(String)

Remove the given named context

public bool TryRemoveContext (string contextName);
member this.TryRemoveContext : string -> bool
Public Function TryRemoveContext (contextName As String) As Boolean

Parameters

contextName
String

The context name

Returns

true if the context was found and removed, otherwise false

Applies to