共用方式為


DataSiteableObject<T> 類別

提供簡化的方式支援物件和其站台之間通訊的容器。

繼承階層架構

Object
  Microsoft.VisualStudio.Data.Framework.DataSiteableObject<T>
    其他...

命名空間:  Microsoft.VisualStudio.Data.Framework
組件:  Microsoft.VisualStudio.Data.Framework (在 Microsoft.VisualStudio.Data.Framework.dll 中)

語法

'宣告
Public Class DataSiteableObject(Of T) _
    Implements IVsDataSiteableObject(Of T)
public class DataSiteableObject<T> : IVsDataSiteableObject<T>
generic<typename T>
public ref class DataSiteableObject : IVsDataSiteableObject<T>
type DataSiteableObject<'T> =  
    class 
        interface IVsDataSiteableObject<'T>
    end
JScript 不支援泛型型別或方法。

類型參數

  • T
    參數的型別。

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

建構函式

  名稱 描述
公用方法 DataSiteableObject<T>() 建立 DataSiteableObject<T> 類別的新執行個體。
公用方法 DataSiteableObject<T>(T) DataSiteableObject<T> 初始化類別的新執行個體,並指定網站的泛型型別參數。

回頁首

屬性

  名稱 描述
公用屬性 Site 取得或設定物件的網站。

回頁首

方法

  名稱 描述
公用方法 Equals 判斷指定的物件是否等於目前的物件。 (繼承自 Object)。
受保護的方法 Finalize 在記憶體回收開始前,允許物件嘗試釋放資源,並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 做為預設雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前實例 Type 的屬性。 (繼承自 Object)。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複製 (Shallow Copy) 。 (繼承自 Object)。
受保護的方法 OnSiteChanged 引發 SiteChanged 事件。
公用方法 ToString 傳回代表目前物件的字串。 (繼承自 Object)。

回頁首

事件

  名稱 描述
公用事件 SiteChanged Site 屬性變更時發生。

回頁首

備註

這個類別會提供引發的事件,而改變這個網站。 當變更時,發生於物件站台時,這可讓用戶端或任何衍生類別套用自訂邏輯。

執行緒安全

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

請參閱

參考

Microsoft.VisualStudio.Data.Framework 命名空間

繼承階層架構

Object
  Microsoft.VisualStudio.Data.Framework.DataSiteableObject<T>
    Microsoft.VisualStudio.Data.Framework.AdoDotNet.AdoDotNetConnectionProperties
    Microsoft.VisualStudio.Data.Framework.DataAsyncCommand
    Microsoft.VisualStudio.Data.Framework.DataCommand
    Microsoft.VisualStudio.Data.Framework.DataConnectionEquivalencyComparer
    Microsoft.VisualStudio.Data.Framework.DataMappedObjectConverter
    Microsoft.VisualStudio.Data.Framework.DataObjectIdentifierConverter
    Microsoft.VisualStudio.Data.Framework.DataObjectIdentifierResolver
    Microsoft.VisualStudio.Data.Framework.DataObjectMemberComparer
    Microsoft.VisualStudio.Data.Framework.DataObjectSelector
    Microsoft.VisualStudio.Data.Framework.DataProviderObjectFactory
    Microsoft.VisualStudio.Data.Framework.DataSourceInformation
    Microsoft.VisualStudio.Data.Framework.DataSourceVersionComparer
    Microsoft.VisualStudio.Data.Framework.DataTransaction
    Microsoft.VisualStudio.Data.Framework.DataViewBrowseObjectProvider
    Microsoft.VisualStudio.Data.Framework.DataViewCommandProvider
    Microsoft.VisualStudio.Data.Framework.DataViewDocumentProvider
    Microsoft.VisualStudio.Data.Framework.DSRefBuilder