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.
Returns true if an exclusive lock on the given resource is currently held.
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
Public Function QueryLockMode ( _
requestContext As TeamFoundationRequestContext, _
resource As String _
) As TeamFoundationLockMode
public TeamFoundationLockMode QueryLockMode(
TeamFoundationRequestContext requestContext,
string resource
)
public:
TeamFoundationLockMode QueryLockMode(
TeamFoundationRequestContext^ requestContext,
String^ resource
)
member QueryLockMode :
requestContext:TeamFoundationRequestContext *
resource:string -> TeamFoundationLockMode
public function QueryLockMode(
requestContext : TeamFoundationRequestContext,
resource : String
) : TeamFoundationLockMode
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe context for this request.
resource
Type: System.StringThe resource whose lock status is to be queried.
Return Value
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationLockMode
The type of lock associated with the specified resource.
.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.