TypeConverter.GetProperties Yöntem

Tanım

değer parametresi tarafından belirtilen dizi türü için bir özellik koleksiyonu döndürür.

Aşırı Yüklemeler

Name Description
GetProperties(Object)

değer parametresi tarafından belirtilen dizi türü için bir özellik koleksiyonu döndürür.

GetProperties(ITypeDescriptorContext, Object)

Belirtilen bağlamı kullanarak değer parametresi tarafından belirtilen dizi türü için bir özellik koleksiyonu döndürür.

GetProperties(ITypeDescriptorContext, Object, Attribute[])

Belirtilen bağlamı ve öznitelikleri kullanarak değer parametresi tarafından belirtilen dizi türü için bir özellik koleksiyonu döndürür.

GetProperties(Object)

Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs

değer parametresi tarafından belirtilen dizi türü için bir özellik koleksiyonu döndürür.

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::Object ^ value);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered.")]
public System.ComponentModel.PropertyDescriptorCollection? GetProperties(object value);
public System.ComponentModel.PropertyDescriptorCollection GetProperties(object value);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered.")>]
member this.GetProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
member this.GetProperties : obj -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (value As Object) As PropertyDescriptorCollection

Parametreler

value
Object

Object Özelliklerin alındığı dizi türünü belirten bir.

Döndürülenler

PropertyDescriptorCollection Bu veri türü için kullanıma sunulan özelliklere sahip veya null özellik yoksa.

Öznitelikler

Açıklamalar

Bu sınıfta uygulandığı gibi, bu yöntem her zaman döndürür null.

Varsayılan olarak, bir tür özellikleri döndürmez. Bu yöntemin kolay bir şekilde uygulanması, doğru veri türünü çağırabilir GetProperties .

Şunlara uygulanır

GetProperties(ITypeDescriptorContext, Object)

Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs

Belirtilen bağlamı kullanarak değer parametresi tarafından belirtilen dizi türü için bir özellik koleksiyonu döndürür.

public:
 System::ComponentModel::PropertyDescriptorCollection ^ GetProperties(System::ComponentModel::ITypeDescriptorContext ^ context, System::Object ^ value);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered.")]
public System.ComponentModel.PropertyDescriptorCollection? GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object value);
public System.ComponentModel.PropertyDescriptorCollection GetProperties(System.ComponentModel.ITypeDescriptorContext context, object value);
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("The Type of value cannot be statically discovered.")>]
member this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj -> System.ComponentModel.PropertyDescriptorCollection
member this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj -> System.ComponentModel.PropertyDescriptorCollection
Public Function GetProperties (context As ITypeDescriptorContext, value As Object) As PropertyDescriptorCollection

Parametreler

context
ITypeDescriptorContext

Biçim ITypeDescriptorContext bağlamı sağlayan.

value
Object

Object Özelliklerin alındığı dizi türünü belirten bir.

Döndürülenler

PropertyDescriptorCollection Bu veri türü için kullanıma sunulan özelliklere sahip veya null özellik yoksa.

Öznitelikler

Açıklamalar

Bu dönüştürücüsü context çağrıldığı ortam hakkında ek bilgi ayıklamak için parametresini kullanın. Bu parametre olabilir null, bu nedenle her zaman denetleyin. Ayrıca, bağlam nesnesinde özellikler döndürebilir null.

Bu sınıfta uygulandığı gibi, bu yöntem her zaman döndürür null.

Varsayılan olarak, bir tür özellikleri döndürmez. Bu yöntemin kolay bir şekilde uygulanması, doğru veri türünü çağırabilir GetProperties .

Ayrıca bkz.

Şunlara uygulanır

GetProperties(ITypeDescriptorContext, Object, Attribute[])

Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs
Kaynak:
TypeConverter.cs

Belirtilen bağlamı ve öznitelikleri kullanarak değer parametresi tarafından belirtilen dizi türü için bir özellik koleksiyonu döndürür.

public:
 virtual 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 virtual System.ComponentModel.PropertyDescriptorCollection? GetProperties(System.ComponentModel.ITypeDescriptorContext? context, object value, Attribute[]? attributes);
public virtual 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.")>]
abstract member GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
abstract member GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
override this.GetProperties : System.ComponentModel.ITypeDescriptorContext * obj * Attribute[] -> System.ComponentModel.PropertyDescriptorCollection
Public Overridable Function GetProperties (context As ITypeDescriptorContext, value As Object, attributes As Attribute()) As PropertyDescriptorCollection

Parametreler

context
ITypeDescriptorContext

Biçim ITypeDescriptorContext bağlamı sağlayan.

value
Object

Object Özelliklerin alındığı dizi türünü belirten bir.

attributes
Attribute[]

Filtre olarak kullanılan tür Attribute dizisi.

Döndürülenler

PropertyDescriptorCollection Bu veri türü için kullanıma sunulan özelliklere sahip veya null özellik yoksa.

Öznitelikler

Açıklamalar

Bu sınıfta uygulandığı gibi, bu yöntem her zaman döndürür null.

Devralanlara Notlar

Dönüştürmek istediğiniz tür özellikleri destekliyorsa bu yöntemi geçersiz kılın.

Bu dönüştürücüsü context çağrıldığı ortam hakkında ek bilgi ayıklamak için parametresini kullanın. Bu parametre olabilir null, bu nedenle her zaman denetleyin. Ayrıca, bağlam nesnesinde özellikler döndürebilir null.

Öznitelikler dizisi, diziyi filtrelemek için kullanılır. Öznitelikler ve Type nesnelerinin bir karışımına Attribute sahip olabilir. Filtreleme aşağıdaki kurallarla tanımlanır:

  • A Type joker karakter olarak kabul edilir; özniteliğine sahip Type olan bir özellikle eşleşir.

  • Bir özelliğin Attribute sınıfı aynı değilse, özellik döndürülen diziye dahil değildir.

  • özniteliği bir Attributeörneğiyse, özelliğin tam eşleşmesi olmalıdır veya döndürülen diziye dahil değildir.

  • Bir Attribute örnek belirtilirse ve varsayılan özellikse, özelliğinde örneği olmasa bile döndürülen diziye Attribute eklenir.

Ayrıca bkz.

Şunlara uygulanır