CustomTypeDescriptor.GetDefaultProperty Метод
Определение
Важно!
Некоторые сведения относятся к предварительной версии продукта, в которую до выпуска могут быть внесены существенные изменения. Майкрософт не предоставляет никаких гарантий, явных или подразумеваемых, относительно приведенных здесь сведений.
Возвращает дескриптор свойства по умолчанию объекта, представленного дескриптором этого типа.
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
Возвращаемое значение
Значение PropertyDescriptor свойства по умолчанию для объекта, представленного дескриптором этого типа. Значение по умолчанию — null.
Реализации
- Атрибуты
Комментарии
Если в конструктор был передан CustomTypeDescriptor дескриптор родительского пользовательского типа, GetDefaultProperty метод вызовет соответствующий метод родительского типа.