次の方法で共有


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