Export (0) Print
Expand All
Expand Minimize

VersionControlServer.UnlabelItem Method

Removes a label that is applied to an item.

Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in microsoft.teamfoundation.versioncontrol.client.dll)

public LabelResult[] UnlabelItem (
	string labelName,
	string labelScope,
	ItemSpec[] itemSpecs,
	VersionSpec version
)
public LabelResult[] UnlabelItem (
	String labelName, 
	String labelScope, 
	ItemSpec[] itemSpecs, 
	VersionSpec version
)
public function UnlabelItem (
	labelName : String, 
	labelScope : String, 
	itemSpecs : ItemSpec[], 
	version : VersionSpec
) : LabelResult[]

Parameters

labelName

The name of the label being removed.

labelScope

The database path that indicates the scope at which the label is defined.

itemSpecs

An array of items to remove from the label.

version

The version of the specified items from which you want to remove the label.

Return Value

Returns an array of LabelResult objects that indicate the results of the label operations.

Exception typeCondition

ArgumentNullException

Thrown if version is a null reference (Nothing in Visual Basic).

ArgumentException

Thrown if labelName or itemSpecs are empty or a null reference (Nothing in Visual Basic).

Community Additions

ADD
Show:
© 2014 Microsoft