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

IAuthenticationFactory.GetServiceClientCredentials Method

Definition

Overloads

GetServiceClientCredentials(IAzureContext)
GetServiceClientCredentials(IAzureContext, String)
GetServiceClientCredentials(String, Func<String>)

GetServiceClientCredentials(IAzureContext)

public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context);
abstract member GetServiceClientCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext -> Microsoft.Rest.ServiceClientCredentials
Public Function GetServiceClientCredentials (context As IAzureContext) As ServiceClientCredentials

Parameters

context
IAzureContext

Returns

Applies to

GetServiceClientCredentials(IAzureContext, String)

public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials (Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext context, string targetEndpoint);
abstract member GetServiceClientCredentials : Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureContext * string -> Microsoft.Rest.ServiceClientCredentials
Public Function GetServiceClientCredentials (context As IAzureContext, targetEndpoint As String) As ServiceClientCredentials

Parameters

context
IAzureContext
targetEndpoint
String

Returns

Applies to

GetServiceClientCredentials(String, Func<String>)

public Microsoft.Rest.ServiceClientCredentials GetServiceClientCredentials (string accessToken, Func<string> renew = default);
abstract member GetServiceClientCredentials : string * Func<string> -> Microsoft.Rest.ServiceClientCredentials
Public Function GetServiceClientCredentials (accessToken As String, Optional renew As Func(Of String) = Nothing) As ServiceClientCredentials

Parameters

accessToken
String
renew
Func<String>

Returns

Applies to