RegexStringValidatorAttribute クラス
メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。
.NET Framework が構成プロパティに対して正規表現を使用した文字列の検証を実行するように、宣言によって指示します。このクラスは継承できません。
名前空間: System.Configuration
アセンブリ: System.Configuration (system.configuration.dll 内)
構文
<AttributeUsageAttribute(AttributeTargets.Property)> _ Public NotInheritable Class RegexStringValidatorAttribute Inherits ConfigurationValidatorAttribute
[AttributeUsageAttribute(AttributeTargets.Property)] public sealed class RegexStringValidatorAttribute : ConfigurationValidatorAttribute
[AttributeUsageAttribute(AttributeTargets::Property)] public ref class RegexStringValidatorAttribute sealed : public ConfigurationValidatorAttribute

RegexStringValidatorAttribute を使用して、.NET Framework が RegexStringValidator を使用してプロパティを検証するように指示する構成プロパティを装飾し、装飾のパラメータの値を渡します。

RegexStringValidatorAttribute オブジェクトを使用して、カスタム ConfigurationSection オブジェクトのプロパティを装飾する方法を、次のコード例に示します。

System.Attribute
System.Configuration.ConfigurationValidatorAttribute
System.Configuration.RegexStringValidatorAttribute


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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


- RegexStringValidatorAttribute クラスのページへのリンク