Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- labelName 
 Type: System.String- The name of the label to open. 
- labelScope 
 Type: System.String- The scope of the label to open. 
- 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.TeamFoundation.VersionControl Namespace