CustomTypeDescriptor.GetDefaultProperty Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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.