AdomdDataReader.Enumerator 结构
Implements the System.Collections.IEnumerator interface to support iterating over an AdomdDataReader and reading its individual records.
命名空间: Microsoft.AnalysisServices.AdomdClient
程序集: Microsoft.AnalysisServices.AdomdClient(在 Microsoft.AnalysisServices.AdomdClient.dll 中)
语法
声明
Public Structure Enumerator _
Implements IEnumerator
用法
Dim instance As AdomdDataReader.Enumerator
public struct Enumerator : IEnumerator
public value class Enumerator : IEnumerator
[<SealedAttribute>]
type Enumerator =
struct
interface IEnumerator
end
JScript 支持使用结构,但不支持声明新结构。
AdomdDataReader.Enumerator 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
Current | Gets the current IDataRecord interface in the AdomdDataReader. |
页首
方法
名称 | 说明 | |
---|---|---|
Equals | (从 ValueType 继承。) | |
GetHashCode | (从 ValueType 继承。) | |
GetType | (从 Object 继承。) | |
MoveNext | Moves to the next IDataRecord interface in the AdomdDataReader. | |
Reset | Sets the enumerator to its initial position, which is before the first element in the collection. | |
ToString | (从 ValueType 继承。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
IEnumerator.Current | Gets the current IDataRecord object in the AdomdDataReader. |
页首
注释
In Microsoft JScript, you can use the structures in the Microsoft .NET Framework, but you cannot define your own.
Because the AdomdDataReader is a forward-only source of data, you can iterate the associated enumerator only once.
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。