次の方法で共有


DataBindingCollectionConverter クラス

DataBindingCollection オブジェクトの型コンバータを提供します。

この型のすべてのメンバの一覧については、DataBindingCollectionConverter メンバ を参照してください。

System.Object
   System.ComponentModel.TypeConverter
      System.Web.UI.Design.DataBindingCollectionConverter

Public Class DataBindingCollectionConverter
   Inherits TypeConverter
[C#]
public class DataBindingCollectionConverter : TypeConverter
[C++]
public __gc class DataBindingCollectionConverter : public
   TypeConverter
[JScript]
public class DataBindingCollectionConverter extends TypeConverter

スレッドセーフ

この型の public static (Visual Basicでは Shared) のすべてのメンバは、マルチスレッド操作で安全に使用できます。インスタンスのメンバの場合は、スレッドセーフであるとは限りません。

解説

この型コンバータは、文字列型以外のすべての変換先の型について、基本 TypeConverter ConvertTo メソッドを呼び出します。ただし、文字列型には空の文字列を返します。

使用例

 
' Associates the DataBindingCollectionConverter 
' with a DataBindingCollection property.   
<TypeConverterAttribute(GetType(DataBindingCollectionConverter))>  _
Public Property dataBindings() As DataBindingCollection
   Get
      Return bindings
   End Get
   Set
      bindings = value
   End Set
End Property
Private bindings As DataBindingCollection

[C#] 
// Associates the DataBindingCollectionConverter 
// with a DataBindingCollection property.
[TypeConverterAttribute(typeof(DataBindingCollectionConverter))]
public DataBindingCollection dataBindings
{
    get
    {
        return bindings;
    }
    set
    {
        bindings = value;
    }
}
private DataBindingCollection bindings;

[C++] 
// Associates the DataBindingCollectionConverter
// with a DataBindingCollection property.
public:
[TypeConverterAttribute(__typeof(DataBindingCollectionConverter))]
__property DataBindingCollection* get_dataBindings() {
   return bindings;
}
__property void set_dataBindings(DataBindingCollection* value) {
   bindings = value;
}

private:
DataBindingCollection*  bindings;

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

名前空間: System.Web.UI.Design

プラットフォーム: Windows 2000, Windows XP Professional, Windows Server 2003 ファミリ

アセンブリ: System.Design (System.Design.dll 内)

参照

DataBindingCollectionConverter メンバ | System.Web.UI.Design 名前空間