LinkDescriptor 類別

定義

提供 DataServiceResponse 傳回的作業對實體所做修訂的描述。Provides a description of modifications done to entities by operations returned in a DataServiceResponse.

public ref class LinkDescriptor sealed : System::Data::Services::Client::Descriptor
public sealed class LinkDescriptor : System.Data.Services.Client.Descriptor
type LinkDescriptor = class
    inherit Descriptor
Public NotInheritable Class LinkDescriptor
Inherits Descriptor
繼承
LinkDescriptor

備註

SaveChanges 方法傳回包含 DataServiceResponse 物件序列的 OperationResponse 物件,序列中的每一個物件都包含表示保存的變更之 EntityDescriptorLinkDescriptor 執行個體的序列。The SaveChanges method returns a DataServiceResponse object that contains a series of OperationResponse objects, each of which contains a sequence of EntityDescriptor or LinkDescriptor instances that represent persisted changes.

如果作業成功,描述元的 State 屬性會設為不變更,而插入和更新作業的新值會根據合併設定來進行合併。For successful operations, the State property of the descriptor is set to unchanged and the new values for insert and update operations are merged according to the merge settings.

如果作業失敗,描述元的 State 會維持不變,與 SaveChanges 呼叫之前相同。For operations with errors, the State of the descriptor will remain the same as they were before SaveChanges was called.

如果作業期間出現錯誤且處理停止,State 仍會維持不變。If an error occurred and processing stopped during an operation, the State will remain unchanged.

屬性

Source

連結中 DataServiceResponse 傳回的來源實體。A source entity in a link returned by a DataServiceResponse.

SourceProperty

連結中 DataServiceResponse 傳回之來源實體的識別項屬性。The identifier property of the source entity in a link returned by a DataServiceResponse.

State

在衍生類別中覆寫時,取得建構此執行個體時的物件狀態。When overridden in a derived class, gets the state of the object at the time this instance was constructed.

(繼承來源 Descriptor)
Target

連結中 DataServiceResponse 傳回的來源實體。The source entity in a link returned by a DataServiceResponse.

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於