Delen via


Repository.DeleteLabel Method

Deletes the label with the given name and root item.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function DeleteLabel ( _
    labelName As String, _
    labelScope As String _
) As List(Of LabelResult)
[WebMethodAttribute]
public List<LabelResult> DeleteLabel(
    string labelName,
    string labelScope
)
[WebMethodAttribute]
public:
List<LabelResult^>^ DeleteLabel(
    String^ labelName, 
    String^ labelScope
)
[<WebMethodAttribute>]
member DeleteLabel : 
        labelName:string * 
        labelScope:string -> List<LabelResult> 
public function DeleteLabel(
    labelName : String, 
    labelScope : String
) : List<LabelResult>

Parameters

  • labelScope
    Type: System.String

    Item representing the label's scope or a parent of it.

Return Value

Type: System.Collections.Generic.List<LabelResult>
List of labels deleted as LabelResult objects.

.NET Framework Security

See Also

Reference

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace