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

UsernamePasswordParameters Constructor

Definition

public UsernamePasswordParameters (Microsoft.Azure.Commands.Common.Authentication.PowerShellTokenCacheProvider tokenCacheProvider, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment environment, Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureTokenCache tokenCache, string tenantId, string resourceId, string userId, System.Security.SecureString password, string homeAccountId);
new Microsoft.Azure.Commands.Common.Authentication.UsernamePasswordParameters : Microsoft.Azure.Commands.Common.Authentication.PowerShellTokenCacheProvider * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureEnvironment * Microsoft.Azure.Commands.Common.Authentication.Abstractions.IAzureTokenCache * string * string * string * System.Security.SecureString * string -> Microsoft.Azure.Commands.Common.Authentication.UsernamePasswordParameters
Public Sub New (tokenCacheProvider As PowerShellTokenCacheProvider, environment As IAzureEnvironment, tokenCache As IAzureTokenCache, tenantId As String, resourceId As String, userId As String, password As SecureString, homeAccountId As String)

Parameters

tokenCacheProvider
PowerShellTokenCacheProvider
environment
IAzureEnvironment
tokenCache
IAzureTokenCache
tenantId
String
resourceId
String
userId
String
password
SecureString
homeAccountId
String

Applies to