CustomTypeDescriptor.GetDefaultProperty Yöntem

Tanım

Bu tür tanımlayıcısı tarafından temsil edilen nesnenin varsayılan özelliği için özellik tanımlayıcısını döndürür.

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

Döndürülenler

Bu tür tanımlayıcısı tarafından temsil edilen nesnedeki varsayılan özellik için A PropertyDescriptor . Varsayılan değer: null.

Uygulamalar

Öznitelikler

Açıklamalar

Oluşturucuya CustomTypeDescriptor bir üst özel tür tanımlayıcısı geçirildiyse, GetDefaultProperty yöntemi üst öğesinin karşılık gelen yöntemini çağırır.

Şunlara uygulanır

Ayrıca bkz.