Nyelv

CustomTypeDescriptor.GetDefaultProperty Metódus

Definíció

Az ilyen típusú leíró által képviselt objektum alapértelmezett tulajdonságának tulajdonságleíróját adja vissza.

public:
 virtual System::ComponentModel::PropertyDescriptor ^ GetDefaultProperty();
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")]
public virtual System.ComponentModel.PropertyDescriptor? GetDefaultProperty();
public virtual System.ComponentModel.PropertyDescriptor GetDefaultProperty();
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("PropertyDescriptor's PropertyType cannot be statically discovered.")>]
abstract member GetDefaultProperty : unit -> System.ComponentModel.PropertyDescriptor
override this.GetDefaultProperty : unit -> System.ComponentModel.PropertyDescriptor
abstract member GetDefaultProperty : unit -> System.ComponentModel.PropertyDescriptor
override this.GetDefaultProperty : unit -> System.ComponentModel.PropertyDescriptor
Public Overridable Function GetDefaultProperty () As PropertyDescriptor

Válaszok

A PropertyDescriptor típusleíró által képviselt objektum alapértelmezett tulajdonsága. Az alapértelmezett érték a null.

Megvalósítás

Attribútumok

Megjegyzések

Ha egy szülő egyéni típusú leírót ad át a CustomTypeDescriptor konstruktornak, a GetDefaultProperty metódus meghívja a szülő megfelelő metódusát.

A következőre érvényes:

Lásd még