Compartilhar via


Método ISharedResourceExtension.BeginTryRequestSharedResourceLock

Tentativas de forma síncrona adquirir um bloqueio no recurso especificado.

Namespace:  Microsoft.TeamFoundation.Build.Workflow.Services
Assembly:  Microsoft.TeamFoundation.Build.Workflow (em Microsoft.TeamFoundation.Build.Workflow.dll)

Sintaxe

'Declaração
Function BeginTryRequestSharedResourceLock ( _
    resourceName As String, _
    instanceId As String, _
    buildUri As Uri, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
IAsyncResult BeginTryRequestSharedResourceLock(
    string resourceName,
    string instanceId,
    Uri buildUri,
    AsyncCallback callback,
    Object state
)

Parâmetros

Valor de retorno

Tipo: System.IAsyncResult
Retifique se o bloqueio é adquirido com êxito, false de outra maneira

Segurança do .NET Framework

Consulte também

Referência

ISharedResourceExtension Interface

Namespace Microsoft.TeamFoundation.Build.Workflow.Services