IdentitySection.UserName プロパティ

定義

偽装に使用するユーザー名を示す値を取得または設定します。

public:
 property System::String ^ UserName { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("userName", DefaultValue="")]
public string UserName { get; set; }
[<System.Configuration.ConfigurationProperty("userName", DefaultValue="")>]
member this.UserName : string with get, set
Public Property UserName As String

プロパティ値

偽装に使用するユーザー名。

属性

次のコード例は、 UserName プロパティにアクセスする方法を示しています。 セクションにアクセスする方法については、 IdentitySection クラスのコード例を参照してください。

// Get the UserName property value.
string currentUserName = identitySection.UserName;

// Set the UserName property value.
identitySection.UserName = "userName";
' Get the UserName property value.
Dim currentUserName As String = identitySection.UserName

' Set the UserName property value.
identitySection.UserName = "userName"

注釈

ユーザー名はクリア テキストで保存されるため、サーバーが存在するドメインで適切な資格情報を持つ認証済みユーザーが読み取ることができます。

セキュリティ上の理由から、ID セクションでは、暗号化された UserNamePasswordのストレージがサポートされています。

適用対象