Workspace.SetLock Method (array<String[], LockLevel, RecursionType, Boolean, array<String[], array<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)

Syntax

'Declaration
Public Function SetLock ( _
    paths As String(), _
    lockLevel As LockLevel, _
    recursion As RecursionType, _
    silent As Boolean, _
    itemAttributeFilters As String(), _
    itemPropertyFilters As String() _
) As Integer
public int SetLock(
    string[] paths,
    LockLevel lockLevel,
    RecursionType recursion,
    bool silent,
    string[] itemAttributeFilters,
    string[] itemPropertyFilters
)
public:
int SetLock(
    array<String^>^ paths, 
    LockLevel lockLevel, 
    RecursionType recursion, 
    bool silent, 
    array<String^>^ itemAttributeFilters, 
    array<String^>^ itemPropertyFilters
)
member SetLock : 
        paths:string[] * 
        lockLevel:LockLevel * 
        recursion:RecursionType * 
        silent:bool * 
        itemAttributeFilters:string[] * 
        itemPropertyFilters:string[] -> int
public function SetLock(
    paths : String[], 
    lockLevel : LockLevel, 
    recursion : RecursionType, 
    silent : boolean, 
    itemAttributeFilters : String[], 
    itemPropertyFilters : String[]
) : int

Parameters

  • silent
    Type: System.Boolean

    Specifies whether server should return get ops

  • itemAttributeFilters
    Type: array<System.String[]

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

  • itemPropertyFilters
    Type: array<System.String[]

    List of property filters.

Return Value

Type: System.Int32
number of locks set

.NET Framework Security

See Also

Reference

Workspace Class

SetLock Overload

Microsoft.TeamFoundation.VersionControl.Client Namespace