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

PSAzureProfile.Context Property

Definition

[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Account Name", ScriptBlock="$_.Context.Account.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Subscription Name", ScriptBlock="$_.Context.Subscription.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Tenant Id", ScriptBlock="$_.Context.Tenant.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
[Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Environment Name", ScriptBlock="$_.Context.Environment.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)]
public Microsoft.Azure.Commands.Profile.Models.PSAzureContext Context { get; set; }
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Account Name", ScriptBlock="$_.Context.Account.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Subscription Name", ScriptBlock="$_.Context.Subscription.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Tenant Id", ScriptBlock="$_.Context.Tenant.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
[<Microsoft.WindowsAzure.Commands.Common.Attributes.Ps1Xml(Label="Environment Name", ScriptBlock="$_.Context.Environment.Name", Target=Microsoft.WindowsAzure.Commands.Common.Attributes.ViewControl.Table)>]
member this.Context : Microsoft.Azure.Commands.Profile.Models.PSAzureContext with get, set
Public Property Context As PSAzureContext

Property Value

Attributes

Applies to