你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
AuthenticationFactory.GetSubscriptionCloudCredentials 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
GetSubscriptionCloudCredentials(IAzureContext) | |
GetSubscriptionCloudCredentials(IAzureContext, String) |
GetSubscriptionCloudCredentials(IAzureContext)
public Microsoft.Azure.SubscriptionCloudCredentials GetSubscriptionCloudCredentials (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context);
abstract member GetSubscriptionCloudCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> Microsoft.Azure.SubscriptionCloudCredentials
override this.GetSubscriptionCloudCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> Microsoft.Azure.SubscriptionCloudCredentials
Public Function GetSubscriptionCloudCredentials (context As IAzureContext) As SubscriptionCloudCredentials
Parameters
- context
- IAzureContext
Returns
Microsoft.Azure.SubscriptionCloudCredentials
Implements
Applies to
GetSubscriptionCloudCredentials(IAzureContext, String)
public Microsoft.Azure.SubscriptionCloudCredentials GetSubscriptionCloudCredentials (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, string targetEndpoint);
abstract member GetSubscriptionCloudCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> Microsoft.Azure.SubscriptionCloudCredentials
override this.GetSubscriptionCloudCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> Microsoft.Azure.SubscriptionCloudCredentials
Public Function GetSubscriptionCloudCredentials (context As IAzureContext, targetEndpoint As String) As SubscriptionCloudCredentials
Parameters
- context
- IAzureContext
- targetEndpoint
- String
Returns
Microsoft.Azure.SubscriptionCloudCredentials