This documentation is archived and is not being maintained.

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.

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

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

public ref class TeamFoundationDataReader sealed : IDisposable, 
	IEnumerable

The TeamFoundationDataReader type exposes the following members.

  NameDescription
Public methodTeamFoundationDataReader(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 methodTeamFoundationDataReader(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 methodTeamFoundationDataReader(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

  NameDescription
Public methodCurrent<T>Gets the current strongly-typed object in the reader.
Public methodCurrentEnumerable<T>Gets the current enumerable (of the specified type) object in the reader.
Public methodDispose()Disposes the data reader
Public methodDispose(Boolean)Disposes of all resources used by the data reader (any disposable result + explicitly managed disposable objects)
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalize (Overrides Object::Finalize().)
Public methodGetEnumeratorRetrieves the enumerator for the current object in the reader.
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodMoveNextMoves to the next object in the reader
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Public methodTryMoveNextTries to move to the next object in the reader
Top

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