SharedResourceWebService.ReleaseLock Method
Releases a shared resource lock.
Namespace: Microsoft.TeamFoundation.Build.Server.Compatibility
Assembly: Microsoft.TeamFoundation.Build.Server (in Microsoft.TeamFoundation.Build.Server.dll)
Syntax
'Declaration
<WebMethodAttribute> _
Public Sub ReleaseLock ( _
resourceName As String, _
instanceId As String, _
requestedBy As String _
)
[WebMethodAttribute]
public void ReleaseLock(
string resourceName,
string instanceId,
string requestedBy
)
[WebMethodAttribute]
public:
void ReleaseLock(
String^ resourceName,
String^ instanceId,
String^ requestedBy
)
[<WebMethodAttribute>]
member ReleaseLock :
resourceName:string *
instanceId:string *
requestedBy:string -> unit
public function ReleaseLock(
resourceName : String,
instanceId : String,
requestedBy : String
)
Parameters
resourceName
Type: System.StringThe name of the resource to release the lock on.
instanceId
Type: System.StringAn instance identifier that's used to differentiate requests from the same requester.
requestedBy
Type: System.StringThe name or an identifier for the original requester of the lock.
Remarks
If the lock is currently held, it will be released. If the lock is not held by the requester, but there is a request pending, the request will be canceled. If neither a lock nor a pending request is present, the server will not report an error.
.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.
See Also
Reference
SharedResourceWebService Class
Microsoft.TeamFoundation.Build.Server.Compatibility Namespace