PasswordCredential.UserName 屬性

定義

取得或設定認證的使用者名稱。 此值不得為 Null 或空白,否則會擲回例外狀況。

public:
 property Platform::String ^ UserName { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring UserName();

void UserName(winrt::hstring userName);
public string UserName { get; set; }
var string = passwordCredential.userName;
passwordCredential.userName = string;
Public Property UserName As String

屬性值

String

Platform::String

winrt::hstring

認證的使用者名稱。

適用於