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. 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
resource
Type: TResourceThe resource.
cancellationToken
Type: System.Threading.CancellationTokenThe token whose cancellation signals lost interest in the resource.
Return Value
Type: System.Threading.Tasks.Task
A Task whose completion signals the resource has been prepared.
.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.