检索属性的类型与指定的属性的名称。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.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
类型:String一个名称来检索属性描述符。
返回值
类型:PropertyDescriptor
一个属性的类型与指定属性名、nullnull 引用(在 Visual Basic 中为 Nothing),如果未找到具有指定名称的属性。
异常
异常 | 条件 |
---|---|
ArgumentNullException | name 参数为 null。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关详细信息,请参阅通过部分受信任的代码使用库。