DataReader.HasDescriptor 属性

获取指示数据读取器是否为通过 Descriptor 属性公开它的 IVsDataReaderDescriptor 实现。

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

语法

声明
Protected Overridable ReadOnly Property HasDescriptor As Boolean
protected virtual bool HasDescriptor { get; }
protected:
virtual property bool HasDescriptor {
    bool get ();
}
abstract HasDescriptor : bool with get 
override HasDescriptor : bool with get
function get HasDescriptor () : boolean

属性值

类型:Boolean
true ,如果数据具有信息;读取器描述符否则,返回 false。

备注

客户端使用 Descriptor 属性获取描述读取器的信息。 根据实现,此属性可为非 null 或 nullnull 引用(在 Visual Basic 中为 Nothing)。 如果派生类公开描述符,其 HasDescriptor 属性将返回 true,并且 Descriptor 属性将返回非 null 值。

对继承者的说明

此方法的基本实现返回 false。

.NET Framework 安全性

请参阅

参考

DataReader 类

Microsoft.VisualStudio.Data.Framework 命名空间