AttributeProviderAttribute Oluşturucular
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
AttributeProviderAttribute sınıfının yeni bir örneğini başlatır.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| AttributeProviderAttribute(String) |
Verilen tür adıyla sınıfın AttributeProviderAttribute yeni bir örneğini başlatır. |
| AttributeProviderAttribute(Type) |
Verilen türe sahip sınıfın AttributeProviderAttribute yeni bir örneğini başlatır. |
| AttributeProviderAttribute(String, String) |
Verilen tür adı ve özellik adıyla sınıfın yeni bir örneğini AttributeProviderAttribute başlatır. |
AttributeProviderAttribute(String)
Verilen tür adıyla sınıfın AttributeProviderAttribute yeni bir örneğini başlatır.
public:
AttributeProviderAttribute(System::String ^ typeName);
public AttributeProviderAttribute(string typeName);
new System.ComponentModel.AttributeProviderAttribute : string -> System.ComponentModel.AttributeProviderAttribute
Public Sub New (typeName As String)
Parametreler
- typeName
- String
Belirtecek türün adı.
Özel durumlar
typeName, null'e eşittir.
Ayrıca bkz.
Şunlara uygulanır
AttributeProviderAttribute(Type)
Verilen türe sahip sınıfın AttributeProviderAttribute yeni bir örneğini başlatır.
public:
AttributeProviderAttribute(Type ^ type);
public AttributeProviderAttribute(Type type);
new System.ComponentModel.AttributeProviderAttribute : Type -> System.ComponentModel.AttributeProviderAttribute
Public Sub New (type As Type)
Parametreler
- type
- Type
Belirtilmesi gereken tür.
Özel durumlar
type, null'e eşittir.
Örnekler
Aşağıdaki kod örneği, bir özelliği belirli bir AttributeProviderAttribute türüyle DataSourceişaretlemek için komutunu IListSource gösterir. Tam kod listesi için bkz. H nasıl yapılır: Windows Forms Denetimlerinde Öznitelikleri Uygulama.
[Category("Data")]
[Description("Indicates the source of data for the control.")]
[RefreshProperties(RefreshProperties.Repaint)]
[AttributeProvider(typeof(IListSource))]
public object DataSource
{
get => _dataGridView1.DataSource;
set => _dataGridView1.DataSource = value;
}
<Category("Data"), _
Description("Indicates the source of data for the control."), _
RefreshProperties(RefreshProperties.Repaint), _
AttributeProvider(GetType(IListSource))> _
Public Property DataSource() As Object
Get
Return Me.dataGridView1.DataSource
End Get
Set(ByVal value As Object)
Me.dataGridView1.DataSource = value
End Set
End Property
Ayrıca bkz.
Şunlara uygulanır
AttributeProviderAttribute(String, String)
Verilen tür adı ve özellik adıyla sınıfın yeni bir örneğini AttributeProviderAttribute başlatır.
public:
AttributeProviderAttribute(System::String ^ typeName, System::String ^ propertyName);
public AttributeProviderAttribute(string typeName, string propertyName);
new System.ComponentModel.AttributeProviderAttribute : string * string -> System.ComponentModel.AttributeProviderAttribute
Public Sub New (typeName As String, propertyName As String)
Parametreler
- typeName
- String
Belirtecek türün adı.
- propertyName
- String
Özniteliklerin alınacağı özelliğin adı.
Özel durumlar
propertyName, null'e eşittir.