Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Requests a lock on a shared resource.
Namespace:  Microsoft.TeamFoundation.Build.Workflow.Services
Assembly:  Microsoft.TeamFoundation.Build.Workflow (in Microsoft.TeamFoundation.Build.Workflow.dll)
Syntax
'Declaration
Function BeginRequestSharedResourceLock ( _
    resourceName As String, _
    bookmarkName As String, _
    buildUri As Uri, _
    callback As AsyncCallback, _
    state As Object _
) As IAsyncResult
IAsyncResult BeginRequestSharedResourceLock(
    string resourceName,
    string bookmarkName,
    Uri buildUri,
    AsyncCallback callback,
    Object state
)
IAsyncResult^ BeginRequestSharedResourceLock(
    String^ resourceName, 
    String^ bookmarkName, 
    Uri^ buildUri, 
    AsyncCallback^ callback, 
    Object^ state
)
abstract BeginRequestSharedResourceLock : 
        resourceName:string * 
        bookmarkName:string * 
        buildUri:Uri * 
        callback:AsyncCallback * 
        state:Object -> IAsyncResult
function BeginRequestSharedResourceLock(
    resourceName : String, 
    bookmarkName : String, 
    buildUri : Uri, 
    callback : AsyncCallback, 
    state : Object
) : IAsyncResult
Parameters
- resourceName 
 Type: System.String- The name of the resource. 
- bookmarkName 
 Type: System.String- The name of the bookmark. 
- buildUri 
 Type: System.Uri- The build URI 
- callback
 Type: System.AsyncCallback
- state
 Type: System.Object
Return Value
Type: System.IAsyncResult
.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.