检索当前的默认属性浏览对象。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Public Overridable Function GetDefaultProperty As PropertyDescriptor
public virtual PropertyDescriptor GetDefaultProperty()
public:
virtual PropertyDescriptor^ GetDefaultProperty()
abstract GetDefaultProperty : unit -> PropertyDescriptor
override GetDefaultProperty : unit -> PropertyDescriptor
public function GetDefaultProperty() : PropertyDescriptor
返回值
类型:System.ComponentModel.PropertyDescriptor
;如果没有属性,该属性返回当前的默认属性浏览对象或 nullnull 引用(在 Visual Basic 中为 Nothing)。
实现
ICustomTypeDescriptor.GetDefaultProperty()
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。