This documentation is archived and is not being maintained.

TeamFoundationLockingService Class

Locking Service

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationLockingService

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

[TeamFoundationServiceDependency(typeof(TeamFoundationResourceManagementService))]
public sealed class TeamFoundationLockingService : ITeamFoundationService

The TeamFoundationLockingService type exposes the following members.

  NameDescription
Public methodAcquireLock(TeamFoundationRequestContext, TeamFoundationLockInfo)Gets a cross-process lock on the given resource.
Public methodAcquireLock(TeamFoundationRequestContext, TeamFoundationLockMode, String)Gets a cross-process lock on the given resource.
Public methodAcquireLock(TeamFoundationRequestContext, TeamFoundationLockMode, String, Int32)Gets a cross-process lock on the given resource.
Public methodAcquireLocks(TeamFoundationRequestContext, TeamFoundationLockMode, String[])Gets cross-process locks on one or more resources.
Public methodAcquireLocks(TeamFoundationRequestContext, TeamFoundationLockMode, Int32, String[])Gets cross-process locks on one or more resources.
Public methodAcquireLocks(TeamFoundationRequestContext, TeamFoundationLockMode, Int32, Boolean, String[])Gets cross-process locks on one or more resources.
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodQueryLockModeReturns true if an exclusive lock on the given resource is currently held.
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: