CustomTypeDescriptor.GetProperties Yöntem
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.
Bu tür tanımlayıcısı tarafından temsil edilen nesne için bir özellik tanımlayıcıları koleksiyonu döndürür.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| GetProperties() |
Bu tür tanımlayıcısı tarafından temsil edilen nesne için bir özellik tanımlayıcıları koleksiyonu döndürür. |
| GetProperties(Attribute[]) |
Bu tür tanımlayıcısı tarafından temsil edilen nesne için filtrelenmiş bir özellik tanımlayıcıları koleksiyonu döndürür. |
Açıklamalar
yöntemi, GetProperties bu tür tanımlayıcının temsil olduğu nesne için bir özellik tanımlayıcıları koleksiyonu döndürür. Döndürülen koleksiyonu filtrelemek için isteğe bağlı bir öznitelik dizisi sağlanabilir. Üst öğe sağlanmadıysa yöntemi döndürür Empty.
GetProperties()
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
Bu tür tanımlayıcısı tarafından temsil edilen nesne için bir özellik tanımlayıcıları koleksiyonu döndürür.
public:
virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties();
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
abstract member GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : unit -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties () As PropertyDescriptorCollection
Döndürülenler
PropertyDescriptorCollection Bu tür tanımlayıcısı tarafından temsil edilen nesne için özellik açıklamalarını içeren bir. Varsayılan değer: Empty.
Uygulamalar
- Öznitelikler
Açıklamalar
Oluşturucuya CustomTypeDescriptor bir üst özel tür tanımlayıcısı geçirildiyse, GetProperties yöntemi üst öğesinin karşılık gelen yöntemini çağırır.
Ayrıca bkz.
Şunlara uygulanır
GetProperties(Attribute[])
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
- Kaynak:
- CustomTypeDescriptor.cs
Bu tür tanımlayıcısı tarafından temsil edilen nesne için filtrelenmiş bir özellik tanımlayıcıları koleksiyonu döndürür.
public:
virtual System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(Attribute[]? attributes);
public virtual System.ComponentModel.PropertyDescriptorCollection GetProperties(Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
abstract member GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties (attributes As Attribute()) As PropertyDescriptorCollection
Parametreler
- attributes
- Attribute[]
Filtre olarak kullanılacak öznitelik dizisi. Bu olabilir null.
Döndürülenler
PropertyDescriptorCollection Bu tür tanımlayıcısı tarafından temsil edilen nesne için özellik açıklamalarını içeren bir. Varsayılan değer: Empty.
Uygulamalar
- Öznitelikler
Açıklamalar
Döndürülen koleksiyonu filtrelemek için parametresini kullanabilirsiniz attributes . Filtreleme kuralları için bkz GetProperties. .
Oluşturucuya CustomTypeDescriptor bir üst özel tür tanımlayıcısı geçirildiyse, GetProperties yöntemi üst öğesinin karşılık gelen yöntemini çağırır.
Ayrıca bkz.
- GetProperties(Object, Attribute[])
- GetProperties
- PropertyDescriptorCollection
- GetEvents
- GetAttributes()
- GetDefaultProperty()