ComponentConverter.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.
değer parametresi tarafından belirtilen bileşen türü için bir özellik koleksiyonu alır.
public:
override System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value, cli::array <Attribute ^> ^ attributes);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")]
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object value, Attribute[]? attributes);
public override System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object value, Attribute[] attributes);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered. The public parameterless constructor or the 'Default' static field may be trimmed from the Attribute's Type.")>]
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overrides Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection
Parametreler
- context
- ITypeDescriptorContext
Biçim ITypeDescriptorContext bağlamı sağlayan.
Döndürülenler
PropertyDescriptorCollection Bileşen için kullanıma sunulan özelliklere sahip veya null özellik yoksa.
- Öznitelikler
Açıklamalar
parametresi, context bu dönüştürücüye çağrılan ortam hakkında ek bilgi ayıklamak için kullanılabilir. Bu olabilir null, bu nedenle her zaman kontrol edin. Ayrıca, bağlam nesnesinde özellikler döndürebilir null.
Dizi, attributes diziyi filtrelemek için kullanılır.
attributes ve Type nesnelerinin bir karışımına Attribute sahip olabilir. Filtreleme aşağıdaki kurallarla tanımlanır:
Bir Type nesne joker karakter olarak kabul edilir; özniteliğine sahip Type olan tüm özelliklerle eşleşecektir.
Bir özellik aynı sınıfa sahip Attribute değilse, özellik döndürülen diziye dahil edilmeyecektir.
Özniteliği bir örneğiyse Attribute, özelliğin tam eşleşmesi olmalıdır, aksi takdirde döndürülen diziye dahil edilmeyecektir.
Bir Attribute örnek belirtilirse ve varsayılan özellikse, özelliğinde örneği olmasa bile döndürülen diziye Attribute eklenir.