AsyncReaderWriterResourceLock<TMoniker, TResource>::SetResourceAsAccessed Method (Func<TResource, Object^, Boolean>^, Object^)

 

Microsoft internal only.

Namespace:   Microsoft.VisualStudio.Threading
Assembly:  Microsoft.VisualStudio.Threading (in Microsoft.VisualStudio.Threading.dll)

protected:
bool SetResourceAsAccessed(
	Func<TResource, Object^, bool>^ resourceCheck,
	Object^ state
)

Parameters

resourceCheck
Type: System::Func<TResourceObject^, 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::Boolean

Returns true if the delegate returned true on any of the invocations, otherwise false.

Return to top
Show: