你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
PSAzureContext Constructors
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
PSAzureContext() |
Default constructor |
PSAzureContext(IAzureContext) |
Copy Constructor |
PSAzureContext(PSObject) |
Convert a context from a PSObject |
PSAzureContext()
Default constructor
public PSAzureContext ();
Public Sub New ()
Applies to
PSAzureContext(IAzureContext)
Copy Constructor
public PSAzureContext (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context);
new Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext
Public Sub New (context As IAzureContext)
Parameters
- context
- IAzureContext
Applies to
PSAzureContext(PSObject)
Convert a context from a PSObject
public PSAzureContext (System.Management.Automation.PSObject other);
new Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext : System.Management.Automation.PSObject -> Microsoft.Azure.Commands.Profile.Models.Core.PSAzureContext
Public Sub New (other As PSObject)
Parameters
- other
- PSObject