Partager via


Workspace.SetLock, méthode (array<String[], LockLevel)

Applique le verrou sélectionné de niveau aux chemins d'accès spécifiés.

Espace de noms :  Microsoft.TeamFoundation.VersionControl.Client
Assembly :  Microsoft.TeamFoundation.VersionControl.Client (dans Microsoft.TeamFoundation.VersionControl.Client.dll)

Syntaxe

'Déclaration
Public Function SetLock ( _
    paths As String(), _
    lockLevel As LockLevel _
) As Integer
public int SetLock(
    string[] paths,
    LockLevel lockLevel
)

Paramètres

  • paths
    Type : array<System.String[]
    Tableau de tracés sur lesquels pour définir le verrou.

Valeur de retour

Type : System.Int32
Le nombre de verrous définis.

Sécurité .NET Framework

Voir aussi

Référence

Workspace Classe

SetLock, surcharge

Microsoft.TeamFoundation.VersionControl.Client, espace de noms