Compartir a través de


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)

Syntax

'Declaration
Protected Function SetResourceAsAccessed ( _
    resourceCheck As Func(Of TResource, Object, Boolean), _
    state As Object _
) As Boolean
protected bool SetResourceAsAccessed(
    Func<TResource, Object, bool> resourceCheck,
    Object state
)
protected:
bool SetResourceAsAccessed(
    Func<TResource, Object^, bool>^ resourceCheck, 
    Object^ state
)
member SetResourceAsAccessed : 
        resourceCheck:Func<'TResource, Object, bool> * 
        state:Object -> bool
protected function SetResourceAsAccessed(
    resourceCheck : Func<TResource, Object, boolean>, 
    state : Object
) : boolean

Parameters

  • 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.

.NET Framework Security

See Also

Reference

AsyncReaderWriterResourceLock<TMoniker, TResource> Class

SetResourceAsAccessed Overload

Microsoft.VisualStudio.Threading Namespace