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