다음을 통해 공유


TeamFoundationLockingService.QueryLockMode Method

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

  • 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

See Also

Reference

TeamFoundationLockingService Class

Microsoft.TeamFoundation.Framework.Server Namespace