共用方式為


PSAzureEnvironment.Implicit Operator

Definition

Overloads

Implicit(PSAzureEnvironment to AzureEnvironment)

Convert the PowerShell representation of environment to the internal representation.

Implicit(AzureEnvironment to PSAzureEnvironment)

Convert the internal representation of Azure libraries to a representation that is more readable for PowerShell.

Implicit(PSAzureEnvironment to AzureEnvironment)

Convert the PowerShell representation of environment to the internal representation.

public static implicit operator Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureEnvironment (Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment environment);
static member op_Implicit : Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureEnvironment
Public Shared Widening Operator CType (environment As PSAzureEnvironment) As AzureEnvironment

Parameters

environment
PSAzureEnvironment

The PowerShell environment to convert.

Returns

The internal representation of the Azure environment, as used by .Net authentication libraries.

Applies to

Implicit(AzureEnvironment to PSAzureEnvironment)

Convert the internal representation of Azure libraries to a representation that is more readable for PowerShell.

public static implicit operator Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment (Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureEnvironment environment);
static member op_Implicit : Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureEnvironment -> Microsoft.Azure.Commands.Profile.Models.PSAzureEnvironment
Public Shared Widening Operator CType (environment As AzureEnvironment) As PSAzureEnvironment

Parameters

environment
AzureEnvironment

The internal representation fo the Azure environment.

Returns

The PowerShell;-friendly representation of the environment.

Applies to