ObjectBinder<T> 類別

提供對強型別物件包裝的重複存取 SqlDataReader 的功能,使其在商務層不需要參考。

繼承階層架構

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

命名空間:  Microsoft.TeamFoundation.Framework.Server
組件:  Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)

語法

'宣告
Public MustInherit Class ObjectBinder(Of T) _
    Implements IEnumerable(Of T), IEnumerable
public abstract class ObjectBinder<T> : IEnumerable<T>, 
    IEnumerable

類型參數

  • T

ObjectBinder<T> 類型會公開下列成員。

建構函式

  名稱 描述
受保護的方法 ObjectBinder<T>() 預設建構函式
受保護的方法 ObjectBinder<T>(SqlDataReader, String) 將做為結果集合時,的 Constuctor,當繫結器不使用

回頁首

屬性

  名稱 描述
受保護的屬性 BaseReader
公用屬性 Current 取得或設定目前物件
公用屬性 Items 在讀取器的所有項目傳回強型別的清單無法呼叫 MoveNext 方法之後使用。
受保護的屬性 ProcedureName
受保護的屬性 Reader

回頁首

方法

  名稱 描述
受保護的方法 Bind 衍生類別會實作抽象的繫結方法。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetEnumerator 物件繫結器為資料流可列舉並使用內部物件做為列舉值。這表示它不支援可以重設列舉值。的任何要求取得列舉程式會使用這個物件
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 MoveNext 移至下一個物件。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

明確介面實作

  名稱 描述
明確介面實作私用方法 IEnumerable.GetEnumerator

回頁首

執行緒安全

這個類型的任何 Public static (在 Visual Basic 中為 Shared) 成員都是安全執行緒。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.TeamFoundation.Framework.Server 命名空間