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

AzureContext Constructors

Definition

Overloads

AzureContext()
AzureContext(IAzureAccount, IAzureEnvironment, IAzureTenant)
AzureContext(IAzureSubscription, IAzureAccount, IAzureEnvironment)
AzureContext(IAzureSubscription, IAzureAccount, IAzureEnvironment, IAzureTenant)
AzureContext(IAzureSubscription, IAzureAccount, IAzureEnvironment, IAzureTenant, Byte[])

AzureContext()

public AzureContext ();
Public Sub New ()

Applies to

AzureContext(IAzureAccount, IAzureEnvironment, IAzureTenant)

public AzureContext (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment environment, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureTenant tenant);
new Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureTenant -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureContext
Public Sub New (account As IAzureAccount, environment As IAzureEnvironment, tenant As IAzureTenant)

Parameters

account
IAzureAccount
environment
IAzureEnvironment
tenant
IAzureTenant

Applies to

AzureContext(IAzureSubscription, IAzureAccount, IAzureEnvironment)

public AzureContext (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription subscription, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment environment);
new Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureContext
Public Sub New (subscription As IAzureSubscription, account As IAzureAccount, environment As IAzureEnvironment)

Parameters

subscription
IAzureSubscription
account
IAzureAccount
environment
IAzureEnvironment

Applies to

AzureContext(IAzureSubscription, IAzureAccount, IAzureEnvironment, IAzureTenant)

[Newtonsoft.Json.JsonConstructor]
public AzureContext (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription subscription, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment environment, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureTenant tenant);
[<Newtonsoft.Json.JsonConstructor>]
new Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureTenant -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureContext
Public Sub New (subscription As IAzureSubscription, account As IAzureAccount, environment As IAzureEnvironment, tenant As IAzureTenant)

Parameters

subscription
IAzureSubscription
account
IAzureAccount
environment
IAzureEnvironment
tenant
IAzureTenant
Attributes
Newtonsoft.Json.JsonConstructorAttribute

Applies to

AzureContext(IAzureSubscription, IAzureAccount, IAzureEnvironment, IAzureTenant, Byte[])

public AzureContext (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription subscription, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount account, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment environment, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureTenant tenant, byte[] tokens);
new Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureSubscription * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureAccount * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureTenant * byte[] -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.AzureContext
Public Sub New (subscription As IAzureSubscription, account As IAzureAccount, environment As IAzureEnvironment, tenant As IAzureTenant, tokens As Byte())

Parameters

subscription
IAzureSubscription
account
IAzureAccount
environment
IAzureEnvironment
tenant
IAzureTenant
tokens
Byte[]

Applies to