Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Workspace.SetLock Method (String[], LockLevel)

Applies the selected lock level to the specified paths.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public int SetLock(
	string[] paths,
	LockLevel lockLevel


Type: System.String[]

The array of paths on which to set the lock.

Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel

The lock level to apply.

Return Value

Type: System.Int32
The number of locks that are set.

© 2015 Microsoft