Bahasa

SelectionRangeConverter.GetProperties Metode

Definisi

Mengembalikan kumpulan properti yang difilter untuk jenis tersebut SelectionRange .

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

Parameter

context
ITypeDescriptorContext

ITypeDescriptorContext Yang menyediakan konteks format.

value
Object

Yang Object menentukan jenis array untuk mendapatkan properti.

attributes
Attribute[]

Array jenis Attribute yang digunakan sebagai filter.

Mengembalikan

Jika berhasil, kumpulan properti yang harus diekspos untuk jenis; SelectionRange jika tidak, null.

Atribut

Keterangan

Implementasi default metode ini tidak menggunakan context parameter atau value , tetapi hanya merujuk panggilan ke metode TypeDescriptor.TypeDescriptor.GetProperties(Type, Attribute[])

Berlaku untuk

Lihat juga