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.TeamFoundationRequestContext- The context for this request. 
- resource 
 Type: System.String- The 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.