Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
resourceCheck
Type: System.Func<TResource, Object, Boolean>A function that returns true if the provided resource should be considered retrieved.
state
Type: System.ObjectA 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
AsyncReaderWriterResourceLock<TMoniker, TResource> Class