检索属性的类型描述符与指定的属性名称的。
命名空间: Microsoft.VisualStudio.Data
程序集: Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)
语法
声明
Protected Function GetProperty ( _
name As String _
) As PropertyDescriptor
protected PropertyDescriptor GetProperty(
string name
)
protected:
PropertyDescriptor^ GetProperty(
String^ name
)
member GetProperty :
name:string -> PropertyDescriptor
protected function GetProperty(
name : String
) : PropertyDescriptor
参数
- name
类型:System.String
一个属性的名称来检索描述符。
返回值
类型:System.ComponentModel.PropertyDescriptor
;如果未找到,则返回一个属性的类型描述符与指定的属性名或返回 nullnull 引用(在 Visual Basic 中为 Nothing) 具有指定名称的属性。
异常
异常 | 条件 |
---|---|
ArgumentNullException | name 参数为 null。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。