Compartir a través de


AsyncReaderWriterResourceLock<TMoniker, TResource>.PrepareResourceForConcurrentAccessAsync Method

Microsoft internal only. Prepares a resource for concurrent access.

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

Syntax

'Declaration
Protected MustOverride Function PrepareResourceForConcurrentAccessAsync ( _
    resource As TResource, _
    cancellationToken As CancellationToken _
) As Task
protected abstract Task PrepareResourceForConcurrentAccessAsync(
    TResource resource,
    CancellationToken cancellationToken
)
protected:
virtual Task^ PrepareResourceForConcurrentAccessAsync(
    TResource resource, 
    CancellationToken cancellationToken
) abstract
abstract PrepareResourceForConcurrentAccessAsync : 
        resource:'TResource * 
        cancellationToken:CancellationToken -> Task
protected abstract function PrepareResourceForConcurrentAccessAsync(
    resource : TResource, 
    cancellationToken : CancellationToken
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task
A Task whose completion signals the resource has been prepared.

.NET Framework Security

See Also

Reference

AsyncReaderWriterResourceLock<TMoniker, TResource> Class

Microsoft.VisualStudio.Threading Namespace