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
- labelName 
 Type: System.String- Name of label to delete. 
- 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
- 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.