Workspace.SetLock Method (String[], LockLevel, RecursionType, Boolean, String[], String[])

Apply 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,
	RecursionType recursion,
	bool silent,
	string[] itemAttributeFilters,
	string[] itemPropertyFilters
)

Parameters

paths
Type: System.String[]

paths to set the lock on

lockLevel
Type: Microsoft.TeamFoundation.VersionControl.Client.LockLevel

requested lock for the paths

recursion
Type: Microsoft.TeamFoundation.VersionControl.Client.RecursionType

recursion level

silent
Type: System.Boolean

Specifies whether server should return get ops

itemAttributeFilters
Type: System.String[]

A list of versioned item properties to return with each get operation

itemPropertyFilters
Type: System.String[]

List of property filters.

Return Value

Type: System.Int32
number of locks set

Show: