AsyncReaderWriterResourceLock<TMoniker, TResource>::SetResourceAsAccessed Method (Func<TResource, Object^, Boolean>^, Object^)
Visual Studio 2015
Microsoft internal only.
Assembly: Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)
protected: bool SetResourceAsAccessed( Func<TResource, Object^, bool>^ resourceCheck, Object^ state )
Parameters
- resourceCheck
-
Type:
System::Func<TResource, Object^, Boolean>^
A function that returns true if the provided resource should be considered retrieved.
- state
-
Type:
System::Object^
A token whose cancellation indicates lost interest in obtaining the resource.
Return Value
Type: System::BooleanReturns true if the delegate returned true on any of the invocations, otherwise false.
Show: