如果它不这样,已经查找在同义词列表中指定的属性和选择性地进行此属性主要名称同义词集合。
命名空间: Microsoft.VisualStudio.Data.Framework
程序集: Microsoft.VisualStudio.Data.Framework(在 Microsoft.VisualStudio.Data.Framework.dll 中)
语法
声明
Protected Function ResolveProperty ( _
name As String, _
setAsBaseName As Boolean _
) As PropertyDescriptor
protected PropertyDescriptor ResolveProperty(
string name,
bool setAsBaseName
)
protected:
PropertyDescriptor^ ResolveProperty(
String^ name,
bool setAsBaseName
)
member ResolveProperty :
name:string *
setAsBaseName:bool -> PropertyDescriptor
protected function ResolveProperty(
name : String,
setAsBaseName : boolean
) : PropertyDescriptor
参数
- name
类型:System.String
解析的属性的名称。
- setAsBaseName
类型:System.Boolean
指示是否的 Boolean 值进行此属性作为键使用的主要名称为同义词集合。
返回值
类型:System.ComponentModel.PropertyDescriptor
指定的属性作为 PropertyDescriptor 对象,因此,如果在同义词找到列表;否则,nullnull 引用(在 Visual Basic 中为 Nothing)。
异常
| 异常 | 条件 |
|---|---|
| ArgumentNullException | name 参数为 null。 |
示例
让属性在同义词的主要属性名列表影响的属性名称为"属性网格的此属性显示在连接高级对话框。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。