TeamFoundationDataReader Class

A utility class which allows a variable set of data objects (and especially enumerable data objects) to be accessed in a sequential manner.

The reader also disposes of important resources that may be associated with it and the objects that it contains.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationDataReader

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Public NotInheritable Class TeamFoundationDataReader _
    Implements IDisposable, IEnumerable
public sealed class TeamFoundationDataReader : IDisposable, 
    IEnumerable
public ref class TeamFoundationDataReader sealed : IDisposable, 
    IEnumerable
[<Sealed>]
type TeamFoundationDataReader =  
    class 
        interface IDisposable 
        interface IEnumerable 
    end
public final class TeamFoundationDataReader implements IDisposable, IEnumerable

The TeamFoundationDataReader type exposes the following members.

Constructors

  Name Description
Public method TeamFoundationDataReader(array<Object[]) Creates a new data reader for the given set of results. The order of the parameters is the order which the results will be accessed and read through the data reader.
Public method TeamFoundationDataReader(IEnumerable<IDisposable>, array<Object[]) Creates a new data reader for the given set of results. The order of the parameters if the order which the results will be accessed and read through the data reader. The given disposable objects will be disposed together with the reader, which occurs either when the reader is disposed or when it is finalized.
Public method TeamFoundationDataReader(IDisposable, array<Object[]) Creates a new data reader for the given set of results. The order of the parameters if the order which the results will be accessed and read through the data reader. The given disposable object will be disposed together with the reader, which occurs either when the reader is disposed or when it is finalized.

Top

Methods

  Name Description
Public method Current<T> Gets the current strongly-typed object in the reader.
Public method CurrentEnumerable<T> Gets the current enumerable (of the specified type) object in the reader.
Public method Dispose() Disposes the data reader
Public method Dispose(Boolean) Disposes of all resources used by the data reader (any disposable result + explicitly managed disposable objects)
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize (Overrides Object.Finalize().)
Public method GetEnumerator Retrieves the enumerator for the current object in the reader.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method MoveNext Moves to the next object in the reader
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method TryMoveNext Tries to move to the next object in the reader

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.TeamFoundation.Framework.Server Namespace