Share via


ObjectBinder<T> Class

Provides iterative access to strongly typed objects Wraps the functionality of the SqlDataReader so that it does not have to be referred to in the business layer.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.Framework.Server.ObjectBinder<T>
    Microsoft.TeamFoundation.Framework.Server.DatabasePartitionBinder
    Microsoft.TeamFoundation.Framework.Server.DatabaseTenantUsageBinder
    Microsoft.TeamFoundation.Framework.Server.ProjectionBinder<T>

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

Syntax

'Declaration
Public MustInherit Class ObjectBinder(Of T) _
    Implements IEnumerable(Of T), IEnumerable
public abstract class ObjectBinder<T> : IEnumerable<T>, 
    IEnumerable
generic<typename T>
public ref class ObjectBinder abstract : IEnumerable<T>, 
    IEnumerable
[<AbstractClass>]
type ObjectBinder<'T> =  
    class 
        interface IEnumerable<'T>
        interface IEnumerable 
    end
JScript does not support generic types or methods.

Type Parameters

  • T

The ObjectBinder<T> type exposes the following members.

Constructors

  Name Description
Protected method ObjectBinder<T>() Default Constructor
Protected method ObjectBinder<T>(SqlDataReader, String) Constuctor that will be used when this binder is not being used as part of a result collection

Top

Properties

  Name Description
Protected property BaseReader
Public property Current Gets/Sets Current Object
Public property Items Returns strongly typed list of all items in the reader cannot call after use of MoveNext method.
Protected property ProcedureName
Protected property Reader

Top

Methods

  Name Description
Protected method Bind Abstract Bind method to be implemented by the derived class.
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator The object binder is a streaming enumerable and uses an internal object as the enumerator. This means it does not support being able to reset the enumerator. Also all requests to obtain an enumerator will use this object
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.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MoveNext Moves to the next Object.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Explicit Interface Implementations

  Name Description
Explicit interface implemetationPrivate method IEnumerable.GetEnumerator

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