VersionControlLabelExt.OpenLabel Method (String, String, String)

Opens a new label document window, given the name, scope, and owner of the label.

This method may throw a LabelNotFoundException or LabelNotUniqueException, among others.

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

Syntax

'Declaration
Public Function OpenLabel ( _
    labelName As String, _
    labelScope As String, _
    labelOwner As String _
) As VersionControlLabelDocument
public VersionControlLabelDocument OpenLabel(
    string labelName,
    string labelScope,
    string labelOwner
)
public:
VersionControlLabelDocument^ OpenLabel(
    String^ labelName, 
    String^ labelScope, 
    String^ labelOwner
)
member OpenLabel : 
        labelName:string * 
        labelScope:string * 
        labelOwner:string -> VersionControlLabelDocument
public function OpenLabel(
    labelName : String, 
    labelScope : String, 
    labelOwner : String
) : VersionControlLabelDocument

Parameters

  • labelOwner
    Type: System.String

    The owner of the label to open (can be null.)

Return Value

Type: Microsoft.VisualStudio.TeamFoundation.VersionControl.VersionControlLabelDocument
A VersionControlLabelDocument that has just been opened.

.NET Framework Security

See Also

Reference

VersionControlLabelExt Class

OpenLabel Overload

Microsoft.VisualStudio.TeamFoundation.VersionControl Namespace