IVsDataSourceInformation.Contains 方法

当实现由选件类,检索值指示指定属性是否的 Boolean 值此数据源信息实例包含。

命名空间:  Microsoft.VisualStudio.Data.Services.SupportEntities
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
Function Contains ( _
    propertyName As String _
) As Boolean
bool Contains(
    string propertyName
)
bool Contains(
    String^ propertyName
)
abstract Contains : 
        propertyName:string -> bool 
function Contains(
    propertyName : String
) : boolean

参数

  • propertyName
    类型:System.String
    测试的属性的名称。

返回值

类型:System.Boolean
true ,如果指定的属性此数据源信息实例中;否则,false。

备注

建议客户端在实际检索值之前调用此方法,即,因为这会保存值的检索,直到实际需要的。

.NET Framework 安全性

请参见

参考

IVsDataSourceInformation 接口

Microsoft.VisualStudio.Data.Services.SupportEntities 命名空间