次の方法で共有


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"

注釈

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

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

適用対象