Share via


IdentitySection.Password プロパティ

定義

偽装のために使用されるパスワードを示す値を取得または設定します。

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

プロパティ値

偽装のために使用されるパスワード。

属性

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

// Get the Password property value.
string currentPassword = identitySection.Password;

// Set the Password property value.
identitySection.Password = "userPassword";
' Get the Password property value.
Dim currentPassword As String = identitySection.Password

' Set the Password property value.
identitySection.Password = "userPassword"

注釈

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

Note

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

適用対象