共用方式為


SharedResourceWebService4.TryRequestLock 方法

命名空間:  Microsoft.TeamFoundation.Build.Server
組件:  Microsoft.TeamFoundation.Build.Server (在 Microsoft.TeamFoundation.Build.Server.dll 中)

語法

'宣告
<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
)

參數

傳回值

類型:System.Boolean
傳回 Boolean

.NET Framework 安全性

請參閱

參考

SharedResourceWebService4 類別

Microsoft.TeamFoundation.Build.Server 命名空間