你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ManagedIdentityCredential 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
ManagedIdentityCredential() |
Protected constructor for mocking. |
ManagedIdentityCredential(ManagedIdentityCredentialOptions) |
Creates an instance of ManagedIdentityCredential configured with the specified options. |
ManagedIdentityCredential(ManagedIdentityId) |
Creates an instance of ManagedIdentityCredential capable of authenticating using the specified ManagedIdentityId. |
ManagedIdentityCredential()
- Source:
- ManagedIdentityCredential.cs
- Source:
- ManagedIdentityCredential.cs
Protected constructor for mocking.
protected ManagedIdentityCredential ();
Protected Sub New ()
Applies to
ManagedIdentityCredential(ManagedIdentityCredentialOptions)
- Source:
- ManagedIdentityCredential.cs
- Source:
- ManagedIdentityCredential.cs
Creates an instance of ManagedIdentityCredential configured with the specified options.
public ManagedIdentityCredential (Azure.Identity.ManagedIdentityCredentialOptions options);
new Azure.Identity.ManagedIdentityCredential : Azure.Identity.ManagedIdentityCredentialOptions -> Azure.Identity.ManagedIdentityCredential
Public Sub New (options As ManagedIdentityCredentialOptions)
Parameters
- options
- ManagedIdentityCredentialOptions
The options used to configure the credential.
Applies to
ManagedIdentityCredential(ManagedIdentityId)
- Source:
- ManagedIdentityCredential.cs
- Source:
- ManagedIdentityCredential.cs
Creates an instance of ManagedIdentityCredential capable of authenticating using the specified ManagedIdentityId.
public ManagedIdentityCredential (Azure.Identity.ManagedIdentityId id);
new Azure.Identity.ManagedIdentityCredential : Azure.Identity.ManagedIdentityId -> Azure.Identity.ManagedIdentityCredential
Public Sub New (id As ManagedIdentityId)
Parameters
The ManagedIdentityId specifying which managed identity will be configured.