你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AzureContextExtensions.GetEnvironment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetEnvironment(IAzureContextContainer, String) | |
GetEnvironment(IAzureContextContainer, String) |
GetEnvironment(IAzureContextContainer, String)
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment GetEnvironment (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer container, string name);
static member GetEnvironment : Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer * string -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment
<Extension()>
Public Function GetEnvironment (container As IAzureContextContainer, name As String) As IAzureEnvironment
Parameters
- container
- IAzureContextContainer
- name
- String
Returns
Applies to
GetEnvironment(IAzureContextContainer, String)
public static Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment GetEnvironment (this Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer container, string name);
static member GetEnvironment : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContextContainer * string -> Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment
<Extension()>
Public Function GetEnvironment (container As IAzureContextContainer, name As String) As IAzureEnvironment
Parameters
- container
- IAzureContextContainer
- name
- String