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> 列表。

适用于