检索值指示指定属性是否的布尔值此数据源信息实例包含。
命名空间: Microsoft.VisualStudio.Data
程序集: Microsoft.VisualStudio.Data(在 Microsoft.VisualStudio.Data.dll 中)
语法
声明
Public Overridable Function Contains ( _
propertyName As String _
) As Boolean
public virtual bool Contains(
string propertyName
)
public:
virtual bool Contains(
String^ propertyName
)
abstract Contains :
propertyName:string -> bool
override Contains :
propertyName:string -> bool
public function Contains(
propertyName : String
) : boolean
参数
- propertyName
类型:System.String
测试的属性的名称。
返回值
类型:System.Boolean
如果指定的属性此数据源信息实例,包含返回 true ;否则返回 false。
异常
异常 | 条件 |
---|---|
ArgumentNullException | propertyName 参数为 null。 |
备注
建议客户端在实际检索值之前调用此方法,即,因为这会保存值的检索,直到实际需要的。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。