AsyncReaderWriterResourceLock<TMoniker,TResource>.SetResourceAsAccessed Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetResourceAsAccessed(TResource) |
Marks a resource as having been retrieved under a lock. |
SetResourceAsAccessed(Func<TResource,Object,Boolean>, Object) |
Marks any loaded resources as having been retrieved under a lock if they satisfy some predicate. |
SetResourceAsAccessed(TResource)
Marks a resource as having been retrieved under a lock.
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)
Parameters
- resource
- TResource
The type of the resource.
Applies to
SetResourceAsAccessed(Func<TResource,Object,Boolean>, Object)
Marks any loaded resources as having been retrieved under a lock if they satisfy some predicate.
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
Parameters
A function that returns true
if the provided resource should be considered retrieved.
- state
- Object
The state object to pass as a second parameter to resourceCheck
.
Returns
true
if the delegate returned true
on any of the invocations.