IUpdatable 介面
命名空間: System.Data.Services
組件: Microsoft.Data.Services (在 Microsoft.Data.Services.dll 中)
語法
'宣告
Public Interface IUpdatable
'用途
Dim instance As IUpdatable
public interface IUpdatable
public interface class IUpdatable
type IUpdatable = interface end
public interface IUpdatable
IUpdatable 型別公開下列成員。
方法
名稱 | 說明 | |
---|---|---|
![]() |
AddReferenceToCollection | 將指定的值加入到集合中。 |
![]() |
ClearChanges | 取消資料變更。 |
![]() |
CreateResource | 建立指定之型別並屬於指定之容器的資源。 |
![]() |
DeleteResource | 刪除指定的資源。 |
![]() |
GetResource | 取得由查詢和型別名稱所識別、指定之型別的資源。 |
![]() |
GetValue | 取得目標物件上指定之屬性的值。 |
![]() |
RemoveReferenceFromCollection | 從集合中移除指定的值。 |
![]() |
ResetResource | 將 resource 參數所識別的資源重設為其預設值。 |
![]() |
ResolveResource | 傳回由指定之資源物件表示的資源執行個體。 |
![]() |
SaveChanges | 儲存透過 IUpdatable 應用程式開發介面所做的所有變更。 |
![]() |
SetReference | 設定目標物件上指定之參考屬性的值。 |
![]() |
SetValue | 將目標資源上具有指定名稱的屬性值設定為指定的屬性值。 |
上層
備註
IUpdatable 介面與資源無關。 傳回表示資源之物件的方法可以傳回任何內容。
傳回的物件是一個表示資源的不透明物件。 若要使用參考以讀取或更新值,相同的不透明物件要傳遞回 IUpdatable。
IUpdatable 的實作必須追蹤此不透明物件與它所代表之物件間的對應。 當資源序列化並需要正確型別的 Common Language Runtime (CLR) 執行個體時,以此不透明的物件呼叫 IUpdatable 上的 ResolveResource 方法。
若要序列化物件,請呼叫 IUpdatable 上的 ResolveResource 方法。