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.
Namespace:  Microsoft.TeamFoundation.Build.Server
Assembly:  Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
<WebMethodAttribute> _
<ClientServiceMethodAttribute(AsyncPattern := True, SyncPattern := True)> _
Public Function TryRequestLock ( _
    resourceName As String, _
    instanceId As String, _
    requestedBy As String, _
    buildUri As String _
) As Boolean
[WebMethodAttribute]
[ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)]
public bool TryRequestLock(
    string resourceName,
    string instanceId,
    string requestedBy,
    string buildUri
)
[WebMethodAttribute]
[ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)]
public:
bool TryRequestLock(
    String^ resourceName, 
    String^ instanceId, 
    String^ requestedBy, 
    String^ buildUri
)
[<WebMethodAttribute>]
[<ClientServiceMethodAttribute(AsyncPattern = true, SyncPattern = true)>]
member TryRequestLock : 
        resourceName:string * 
        instanceId:string * 
        requestedBy:string * 
        buildUri:string -> bool
public function TryRequestLock(
    resourceName : String, 
    instanceId : String, 
    requestedBy : String, 
    buildUri : String
) : boolean
Parameters
- resourceName
 Type: System.String
- instanceId
 Type: System.String
- requestedBy
 Type: System.String
- buildUri
 Type: System.String
Return Value
Type: System.Boolean
Returns Boolean.
.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.