ValidatedControlConverter クラス
定義
検証コントロールで検証できる Web フォーム ページ上のコントロールを、コントロール ID を保持する文字列に変換します。Converts a control on the Web Forms page that can be validated with a validation control to a string containing the control's ID.
public ref class ValidatedControlConverter : System::ComponentModel::StringConverter
public ref class ValidatedControlConverter : System::Web::UI::WebControls::ControlIDConverter
public class ValidatedControlConverter : System.ComponentModel.StringConverter
public class ValidatedControlConverter : System.Web.UI.WebControls.ControlIDConverter
type ValidatedControlConverter = class
inherit StringConverter
type ValidatedControlConverter = class
inherit ControlIDConverter
Public Class ValidatedControlConverter
Inherits StringConverter
Public Class ValidatedControlConverter
Inherits ControlIDConverter
- 継承
- 継承
注釈
検証コントロールで検証できないコントロールもあります。Not all controls can be validated with a validation control. このクラスは、検証コントロールに関連付けることができる Web フォームページ上にコントロール Id のコレクションを作成します。This class creates a collection of control IDs on the Web Forms page that can be associated with a validation control. このコレクションは、通常、検証コントロールに関連付けることができる Web フォームページ上のコントロールの一覧を表示するために、デザイナーで使用されます。This collection is commonly used in a designer to display a list of controls on the Web Forms page that can be associated with a validation control.
独自の検証コントロールを作成するときに、検証コントロールをサポートするコントロールの一覧をデザイナーで表示できるようにすることができます。When creating your own validation control, you can enable the designer to display a list of controls that support validation controls. 次のように、検証するコントロールを表す文字列プロパティに属性を追加するだけです。Simply add an attribute to the string property that represents the control to validate, as follows:
<TypeConverter(GetType(ValidatedControlConverter))> _
Public Property ControlToValidate() As String
Get
// Add code to get the ID of the control to validate.
End Get
Set
// Add code to set the ID of the control to validate.
End Set
End Property
[TypeConverter(typeof(ValidatedControlConverter))]
public string ControlToValidate
{
get
{
// Add code to get the ID of the control to validate.
}
set
{
// Add code to set the ID of the control to validate.
}
}
コンストラクター
ValidatedControlConverter() |
ValidatedControlConverter クラスの新しいインスタンスを初期化します。Initializes a new instance of the ValidatedControlConverter class. |
メソッド
CanConvertFrom(ITypeDescriptorContext, Type) |
このコンバーターで、指定したコンテキストを使用して、指定したソース型のオブジェクトを文字列に変換できるかどうかを示す値を取得します。Gets a value indicating whether this converter can convert an object in the given source type to a string using the specified context. (継承元 StringConverter) |
CanConvertFrom(Type) |
コンバーターが特定の型のオブジェクトをコンバーターの型に変換できるかどうかを示す値を返します。Returns whether this converter can convert an object of the given type to the type of this converter. (継承元 TypeConverter) |
CanConvertTo(ITypeDescriptorContext, Type) |
このコンバーターが指定のコンテキストを使用して、オブジェクトを指定の型に変換できるかどうかを返します。Returns whether this converter can convert the object to the specified type, using the specified context. (継承元 TypeConverter) |
CanConvertTo(Type) |
コンバーターがオブジェクトを指定した型に変換できるかどうかを示す値を返します。Returns whether this converter can convert the object to the specified type. (継承元 TypeConverter) |
ConvertFrom(ITypeDescriptorContext, CultureInfo, Object) |
指定した値オブジェクトを String オブジェクトに変換します。Converts the specified value object to a String object. (継承元 StringConverter) |
ConvertFrom(Object) |
指定した値をコンバーターの型に変換します。Converts the given value to the type of this converter. (継承元 TypeConverter) |
ConvertFromInvariantString(ITypeDescriptorContext, String) |
インバリアント カルチャと指定したコンテキストを使用して、指定した文字列をコンバーターの型に変換します。Converts the given string to the type of this converter, using the invariant culture and the specified context. (継承元 TypeConverter) |
ConvertFromInvariantString(String) |
インバリアント カルチャを使用して、指定した文字列をコンバーターの型に変換します。Converts the given string to the type of this converter, using the invariant culture. (継承元 TypeConverter) |
ConvertFromString(ITypeDescriptorContext, CultureInfo, String) |
指定したコンテキストとカルチャ情報を使用して、指定したテキストをオブジェクトに変換します。Converts the given text to an object, using the specified context and culture information. (継承元 TypeConverter) |
ConvertFromString(ITypeDescriptorContext, String) |
指定したコンテキストを使用して、指定したテキストをオブジェクトに変換します。Converts the given text to an object, using the specified context. (継承元 TypeConverter) |
ConvertFromString(String) |
指定したテキストをオブジェクトに変換します。Converts the specified text to an object. (継承元 TypeConverter) |
ConvertTo(ITypeDescriptorContext, CultureInfo, Object, Type) |
指定したコンテキストとカルチャ情報を使用して、指定した値オブジェクトを指定した型に変換します。Converts the given value object to the specified type, using the specified context and culture information. (継承元 TypeConverter) |
ConvertTo(Object, Type) |
引数を使用して、指定した値オブジェクトを、指定した型に変換します。Converts the given value object to the specified type, using the arguments. (継承元 TypeConverter) |
ConvertToInvariantString(ITypeDescriptorContext, Object) |
指定したコンテキストを使用して、指定した値をインバリアント カルチャを使用した文字列形式に変換します。Converts the specified value to a culture-invariant string representation, using the specified context. (継承元 TypeConverter) |
ConvertToInvariantString(Object) |
指定した値を、インバリアント カルチャを使用した文字列形式に変換します。Converts the specified value to a culture-invariant string representation. (継承元 TypeConverter) |
ConvertToString(ITypeDescriptorContext, CultureInfo, Object) |
指定したコンテキストとカルチャ情報を使用して、指定した値を文字列形式に変換します。Converts the given value to a string representation, using the specified context and culture information. (継承元 TypeConverter) |
ConvertToString(ITypeDescriptorContext, Object) |
指定したコンテキストを使用して、指定した値を文字列形式に変換します。Converts the given value to a string representation, using the given context. (継承元 TypeConverter) |
ConvertToString(Object) |
指定した値を文字列形式に変換します。Converts the specified value to a string representation. (継承元 TypeConverter) |
CreateInstance(IDictionary) |
Object の一連のプロパティ値を指定して、そのオブジェクトを再作成します。Re-creates an Object given a set of property values for the object. (継承元 TypeConverter) |
CreateInstance(ITypeDescriptorContext, IDictionary) |
この TypeConverter を関連付ける型のインスタンスを作成します。指定されたコンテキストと、与えられているオブジェクトのプロパティ値のセットを使用します。Creates an instance of the type that this TypeConverter is associated with, using the specified context, given a set of property values for the object. (継承元 TypeConverter) |
Equals(Object) |
指定されたオブジェクトが現在のオブジェクトと等しいかどうかを判断します。Determines whether the specified object is equal to the current object. (継承元 Object) |
FilterControl(Control) |
指定されたコントロールを、検証可能なコントロールのリストに追加するかどうかを示す値を返します。Returns a value indicating whether the specified control should be added to the list of controls that can be validated. |
GetConvertFromException(Object) |
変換を実行できないときにスローする例外を返します。Returns an exception to throw when a conversion cannot be performed. (継承元 TypeConverter) |
GetConvertToException(Object, Type) |
変換を実行できないときにスローする例外を返します。Returns an exception to throw when a conversion cannot be performed. (継承元 TypeConverter) |
GetCreateInstanceSupported() |
このオブジェクトの値を変更するときに CreateInstance(IDictionary) メソッドを呼び出して、新しい値を作成する必要があるかどうかを返します。Returns whether changing a value on this object requires a call to the CreateInstance(IDictionary) method to create a new value. (継承元 TypeConverter) |
GetCreateInstanceSupported(ITypeDescriptorContext) |
このオブジェクトの値を変更するときに、指定したコンテキストを使用して CreateInstance(IDictionary) を呼び出して、新しい値を作成する必要があるかどうかを返します。Returns whether changing a value on this object requires a call to CreateInstance(IDictionary) to create a new value, using the specified context. (継承元 TypeConverter) |
GetHashCode() |
既定のハッシュ関数として機能します。Serves as the default hash function. (継承元 Object) |
GetProperties(ITypeDescriptorContext, Object) |
指定したコンテキストを使用して、value パラメーターで指定された配列型のプロパティのコレクションを返します。Returns a collection of properties for the type of array specified by the value parameter, using the specified context. (継承元 TypeConverter) |
GetProperties(ITypeDescriptorContext, Object, Attribute[]) |
指定されたコンテキストと属性を使用して、値パラメーターで指定された配列型のプロパティのコレクションを返します。Returns a collection of properties for the type of array specified by the value parameter, using the specified context and attributes. (継承元 TypeConverter) |
GetProperties(Object) |
value パラメーターに指定された配列型のプロパティのコレクションを返します。Returns a collection of properties for the type of array specified by the value parameter. (継承元 TypeConverter) |
GetPropertiesSupported() |
オブジェクトがプロパティをサポートしているかどうかを示す値を返します。Returns whether this object supports properties. (継承元 TypeConverter) |
GetPropertiesSupported(ITypeDescriptorContext) |
指定したコンテキストを使用して、このオブジェクトがプロパティをサポートするかどうかを返します。Returns whether this object supports properties, using the specified context. (継承元 TypeConverter) |
GetStandardValues() |
型コンバーターがデザインされた対象であるデータ型の既定のコンテキストから、標準値のコレクションを返します。Returns a collection of standard values from the default context for the data type this type converter is designed for. (継承元 TypeConverter) |
GetStandardValues(ITypeDescriptorContext) |
フォーマット コンテキストが提供されている場合、この型コンバーターが対象とするデータ型の標準値のコレクションを返します。Returns a collection of standard values for the data type this type converter is designed for when provided with a format context. |
GetStandardValues(ITypeDescriptorContext) |
書式指定コンテキストが指定されている場合に、IDesignerHost 内のコンテナーからコントロール ID のコレクションを返します。Returns a collection of control IDs from the container within the IDesignerHost when provided with a format context. (継承元 ControlIDConverter) |
GetStandardValuesExclusive() |
GetStandardValues() から返された標準値のコレクションが、排他的なリストかどうかを示す値を返します。Returns whether the collection of standard values returned from GetStandardValues() is an exclusive list. (継承元 TypeConverter) |
GetStandardValuesExclusive(ITypeDescriptorContext) |
指定したコンテキストを使用して、GetStandardValues(ITypeDescriptorContext) から返された標準値のコレクションが使用できる値の排他的なリストかどうかを示す値を返します。Returns a value that indicates whether the collection of standard values returned from GetStandardValues(ITypeDescriptorContext) is an exclusive list of possible values, using the specified context. |
GetStandardValuesExclusive(ITypeDescriptorContext) |
指定したコンテキストを使用して、GetStandardValues(ITypeDescriptorContext) メソッドから返された標準値のコレクションが有効値の除外リストかどうかを示す値を取得します。Returns a value indicating whether the collection of standard values returned by the GetStandardValues(ITypeDescriptorContext) method is an exclusive list of possible values, using the specified context. (継承元 ControlIDConverter) |
GetStandardValuesSupported() |
リストから選択できる標準値セットをオブジェクトがサポートするかどうかを示す値を返します。Returns whether this object supports a standard set of values that can be picked from a list. (継承元 TypeConverter) |
GetStandardValuesSupported(ITypeDescriptorContext) |
指定したコンテキストを使用して、リストから選択できる標準値セットをオブジェクトがサポートするかどうかを示す値を返します。Returns whether this object supports a standard set of values that can be picked from a list, using the specified context. |
GetStandardValuesSupported(ITypeDescriptorContext) |
指定したコンテキストを使用して、リストから選択できる標準のコントロール ID 値セットをオブジェクトがサポートするかどうかを示す値を取得します。Returns a value indicating whether this object supports a standard set of control ID values that can be picked from a list, using the specified context. (継承元 ControlIDConverter) |
GetType() |
現在のインスタンスの Type を取得します。Gets the Type of the current instance. (継承元 Object) |
IsValid(ITypeDescriptorContext, Object) |
指定した値オブジェクトが、この型に対して有効か、指定したコンテキストに対して有効かを返します。Returns whether the given value object is valid for this type and for the specified context. (継承元 TypeConverter) |
IsValid(Object) |
指定した値オブジェクトが型に対して有効かどうかを示す値を返します。Returns whether the given value object is valid for this type. (継承元 TypeConverter) |
MemberwiseClone() |
現在の Object の簡易コピーを作成します。Creates a shallow copy of the current Object. (継承元 Object) |
SortProperties(PropertyDescriptorCollection, String[]) |
プロパティのコレクションを並べ替えます。Sorts a collection of properties. (継承元 TypeConverter) |
ToString() |
現在のオブジェクトを表す文字列を返します。Returns a string that represents the current object. (継承元 Object) |