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