共用方式為


IDataServiceUpdateProvider.SetConcurrencyValues 方法

定義

針對給定的實體資源提供 eTag 值。

public:
 void SetConcurrencyValues(System::Object ^ resourceCookie, Nullable<bool> checkForEquality, System::Collections::Generic::IEnumerable<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>> ^ concurrencyValues);
public void SetConcurrencyValues (object resourceCookie, bool? checkForEquality, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>> concurrencyValues);
abstract member SetConcurrencyValues : obj * Nullable<bool> * seq<System.Collections.Generic.KeyValuePair<string, obj>> -> unit
Public Sub SetConcurrencyValues (resourceCookie As Object, checkForEquality As Nullable(Of Boolean), concurrencyValues As IEnumerable(Of KeyValuePair(Of String, Object)))

參數

resourceCookie
Object

表示資源的 Cookie。

checkForEquality
Nullable<Boolean>

Boolean,在必須比較屬性值是否相等時為 true,在必須比較屬性值是否不相等時為 false

concurrencyValues
IEnumerable<KeyValuePair<String,Object>>

eTag 屬性名稱與對應值的 IEnumerable<T> 清單。

適用於