Share via


PropertyInformation.Validator プロパティ

定義

構成属性に関連する ConfigurationValidatorBase オブジェクトを取得します。

public:
 property System::Configuration::ConfigurationValidatorBase ^ Validator { System::Configuration::ConfigurationValidatorBase ^ get(); };
public System.Configuration.ConfigurationValidatorBase Validator { get; }
member this.Validator : System.Configuration.ConfigurationValidatorBase
Public ReadOnly Property Validator As ConfigurationValidatorBase

プロパティ値

ConfigurationValidatorBase オブジェクト。

次のコード例では、 プロパティの使用方法 Type を示します。 このコード例は、PropertyInformation クラスのために提供されている大規模な例の一部です。

// Display the Validator property.
Console.WriteLine("Validator: {0}", propertyItem.Validator);
' Display the Validator property.
Console.WriteLine("Validator: {0}", propertyItem.Validator)

注釈

返された ConfigurationValidatorBase オブジェクトを使用して、値の構成属性を検証します。

適用対象