AsyncReaderWriterResourceLock<TMoniker,TResource>.SetResourceAsAccessed 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
SetResourceAsAccessed(TResource) |
將資源標記為已在鎖定下被擷取。 |
SetResourceAsAccessed(Func<TResource,Object,Boolean>, Object) |
如果資源滿足一些述詞,則會將任何已載入的資源標示為已在鎖定下擷取。 |
SetResourceAsAccessed(TResource)
將資源標記為已在鎖定下被擷取。
protected:
void SetResourceAsAccessed(TResource resource);
protected:
void SetResourceAsAccessed(TResource resource);
void SetResourceAsAccessed(TResource resource);
protected void SetResourceAsAccessed (TResource resource);
member this.SetResourceAsAccessed : 'Resource -> unit
Protected Sub SetResourceAsAccessed (resource As TResource)
參數
- resource
- TResource
資源類型。
適用於
SetResourceAsAccessed(Func<TResource,Object,Boolean>, Object)
如果資源滿足一些述詞,則會將任何已載入的資源標示為已在鎖定下擷取。
protected:
bool SetResourceAsAccessed(Func<TResource, System::Object ^, bool> ^ resourceCheck, System::Object ^ state);
protected bool SetResourceAsAccessed (Func<TResource,object,bool> resourceCheck, object state);
protected bool SetResourceAsAccessed (Func<TResource,object?,bool> resourceCheck, object? state);
member this.SetResourceAsAccessed : Func<'Resource, obj, bool (requires 'Resource : null)> * obj -> bool
Protected Function SetResourceAsAccessed (resourceCheck As Func(Of TResource, Object, Boolean), state As Object) As Boolean
參數
- state
- Object
要當做第二個參數傳遞至 resourceCheck
的狀態物件。
傳回
true
如果委派在任何呼叫上傳 true
回, 則為 。