Delen via


ServicingJobData.ServicingLocks Property

The LockMode is used to define locking for specific job types.

LockMode effects:

NoLock - These locks will be ignored.

Shared - This will cause the job to take a shared lock on this ServicingLock. Any other job taking a shared lock will be able to continue, but an exclusive lock will be blocked until you finish and you will not be able to start until the exclusive job finishes.

Exclusive - This will cause the job to take an exclusive lock on this ServicingLock. This means that no other operations will be able to start after this lock is acquired. It will also wait for any running jobs that have a lock on one of these.

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

Syntax

'Declaration
Public Property ServicingLocks As TeamFoundationLockInfo()
public TeamFoundationLockInfo[] ServicingLocks { get; set; }
public:
property array<TeamFoundationLockInfo^>^ ServicingLocks {
    array<TeamFoundationLockInfo^>^ get ();
    void set (array<TeamFoundationLockInfo^>^ value);
}
member ServicingLocks : TeamFoundationLockInfo[] with get, set
function get ServicingLocks () : TeamFoundationLockInfo[]
function set ServicingLocks (value : TeamFoundationLockInfo[])

Property Value

Type: array<Microsoft.TeamFoundation.Framework.Server.TeamFoundationLockInfo[]
Returns TeamFoundationLockInfo.

.NET Framework Security

See Also

Reference

ServicingJobData Class

Microsoft.TeamFoundation.Framework.Server Namespace