Partager via


AzureRmAutosaveProfile.TrySetContext Method

Definition

Overloads

TrySetContext(IAzureContext, String)
TrySetContext(String, IAzureContext)

TrySetContext(IAzureContext, String)

public bool TrySetContext (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, out string name);
abstract member TrySetContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> bool
override this.TrySetContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> bool
Public Function TrySetContext (context As IAzureContext, ByRef name As String) As Boolean

Parameters

context
IAzureContext
name
String

Returns

Implements

Applies to

TrySetContext(String, IAzureContext)

public bool TrySetContext (string name, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context);
abstract member TrySetContext : string * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> bool
override this.TrySetContext : string * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> bool
Public Function TrySetContext (name As String, context As IAzureContext) As Boolean

Parameters

name
String
context
IAzureContext

Returns

Implements

Applies to