PasswordPropertyTextAttribute クラス
アセンブリ: System (system.dll 内)

<AttributeUsageAttribute(AttributeTargets.All)> _ Public NotInheritable Class PasswordPropertyTextAttribute Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.All)] public sealed class PasswordPropertyTextAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::All)] public ref class PasswordPropertyTextAttribute sealed : public Attribute

PasswordPropertyTextAttribute 属性がプロパティまたは型に配置されている場合、そのテキスト表現はプロパティ ウィンドウにおいてパスワード フィールドを示すためにドットまたはアスタリスク (*) として表示されます。
![]() |
---|
このような表示にすることで、どんな種類の暗号化情報やセキュリティ情報でも隠すことができます。属性の使用方法については、「属性を使用したメタデータの拡張」を参照してください。 |

PasswordPropertyTextAttribute を使用して、PropertyGrid コントロールの文字列プロパティの値を隠すコード例を次に示します。コード全体については、「方法 : Windows フォーム コントロールに属性を適用する」を参照してください。
' This property exists only to demonstrate the ' PasswordPropertyText attribute. When this control ' is attached to a PropertyGrid control, the returned ' string will be displayed with obscuring characters ' such as asterisks. This property has no other effect. <Category("Security"), _ Description("Demonstrates PasswordPropertyTextAttribute."), _ PasswordPropertyText(True)> _ Public ReadOnly Property Password() As String Get Return "This is a demo password." End Get End Property
// This property exists only to demonstrate the // PasswordPropertyText attribute. When this control // is attached to a PropertyGrid control, the returned // string will be displayed with obscuring characters // such as asterisks. This property has no other effect. [Category("Security")] [Description("Demonstrates PasswordPropertyTextAttribute.")] [PasswordPropertyText(true)] public string Password { get { return "This is a demo password."; } }

System.Attribute
System.ComponentModel.PasswordPropertyTextAttribute


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


PasswordPropertyTextAttribute コンストラクタ ()
アセンブリ: System (system.dll 内)


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


PasswordPropertyTextAttribute コンストラクタ (Boolean)
アセンブリ: System (system.dll 内)


Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


PasswordPropertyTextAttribute コンストラクタ

名前 | 説明 |
---|---|
PasswordPropertyTextAttribute () | PasswordPropertyTextAttribute クラスの新しいインスタンスを初期化します。 |
PasswordPropertyTextAttribute (Boolean) | PasswordPropertyTextAttribute クラスの新しいインスタンスを初期化して、オプションでパスワード テキストを示します。 |

PasswordPropertyTextAttribute フィールド

名前 | 説明 | |
---|---|---|
![]() | Default | PasswordPropertyTextAttribute の既定値を指定します。 |
![]() | No | テキスト プロパティをパスワードとして使用しないことを指定します。この static (Visual Basic では Shared) フィールドは読み取り専用です。 |
![]() | Yes | テキスト プロパティをパスワードとして使用することを指定します。この static (Visual Basic では Shared) フィールドは読み取り専用です。 |

PasswordPropertyTextAttribute プロパティ

名前 | 説明 | |
---|---|---|
![]() | Password | PasswordPropertyTextAttribute が定義されているプロパティをパスワード テキストとして表示するかどうかを示す値を取得します。 |
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。 ( Attribute から継承されます。) |

PasswordPropertyTextAttribute メソッド

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 オーバーライドされます。 2 つの PasswordPropertyTextAttribute インスタンスが等しいかどうかを判断します。 |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 ( Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 ( Attribute から継承されます。) |
![]() | GetHashCode | オーバーライドされます。 このインスタンスのハッシュ コードを返します。 |
![]() | GetType | 現在のインスタンスの Type を取得します。 ( Object から継承されます。) |
![]() | IsDefaultAttribute | オーバーライドされます。 このインスタンスの値が既定値であるかどうかを示す値を返します。 |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 ( Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 ( Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 ( Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 ( Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 ( Object から継承されます。) |

PasswordPropertyTextAttribute メンバ
オブジェクトのテキスト表現がアスタリスク (*) などの文字によって隠されることを示します。このクラスは継承できません。
PasswordPropertyTextAttribute データ型で公開されるメンバを以下の表に示します。

名前 | 説明 | |
---|---|---|
![]() | PasswordPropertyTextAttribute | オーバーロードされます。 PasswordPropertyTextAttribute クラスの新しいインスタンスを初期化します。 |

名前 | 説明 | |
---|---|---|
![]() | Default | PasswordPropertyTextAttribute の既定値を指定します。 |
![]() | No | テキスト プロパティをパスワードとして使用しないことを指定します。この static (Visual Basic では Shared) フィールドは読み取り専用です。 |
![]() | Yes | テキスト プロパティをパスワードとして使用することを指定します。この static (Visual Basic では Shared) フィールドは読み取り専用です。 |

名前 | 説明 | |
---|---|---|
![]() | Password | PasswordPropertyTextAttribute が定義されているプロパティをパスワード テキストとして表示するかどうかを示す値を取得します。 |
![]() | TypeId | 派生クラスに実装されている場合は、この Attribute の一意の識別子を取得します。(Attribute から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Equals | オーバーロードされます。 オーバーライドされます。 2 つの PasswordPropertyTextAttribute インスタンスが等しいかどうかを判断します。 |
![]() | GetCustomAttribute | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用された指定した型のカスタム属性を取得します。 (Attribute から継承されます。) |
![]() | GetCustomAttributes | オーバーロードされます。 アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されたカスタム属性の配列を取得します。 (Attribute から継承されます。) |
![]() | GetHashCode | オーバーライドされます。 このインスタンスのハッシュ コードを返します。 |
![]() | GetType | 現在のインスタンスの Type を取得します。 (Object から継承されます。) |
![]() | IsDefaultAttribute | オーバーライドされます。 このインスタンスの値が既定値であるかどうかを示す値を返します。 |
![]() | IsDefined | オーバーロードされます。 指定した型のカスタム属性が、アセンブリ、モジュール、型のメンバ、またはメソッド パラメータに適用されているかどうかを判断します。 (Attribute から継承されます。) |
![]() | Match | 派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンスが等しいかどうかを示す値を返します。 (Attribute から継承されます。) |
![]() | ReferenceEquals | 指定した複数の Object インスタンスが同一かどうかを判断します。 (Object から継承されます。) |
![]() | ToString | 現在の Object を表す String を返します。 (Object から継承されます。) |

名前 | 説明 | |
---|---|---|
![]() | Finalize | Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。) |
![]() | MemberwiseClone | 現在の Object の簡易コピーを作成します。 (Object から継承されます。) |

Weblioに収録されているすべての辞書からPasswordPropertyTextAttributeを検索する場合は、下記のリンクをクリックしてください。

- PasswordPropertyTextAttributeのページへのリンク