This documentation is archived and is not being maintained.

VersionControlLabel Class

Represents a label. Called a "VersionControlLabel" so that it does not conflict with System.Windows.Forms.Label.

System::Object
  Microsoft.TeamFoundation.VersionControl.Server::VersionControlLabel

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

[RequiredClientServiceAttribute(L"VersionControlServer")]
[CallOnDeserializationAttribute(L"AfterDeserialize")]
public ref class VersionControlLabel : ICacheable

The VersionControlLabel type exposes the following members.

  NameDescription
Public propertyCommentThe label's comment, or null to leave alone.
Public propertyItemsA list of items and their versions that are contained in the label. Only used in the result of QueryLabels where includeItems = true.
Public propertyLabelIdThe label's ID, as represented in the database. The label ID is used to generate the artifact name.
Public propertyLastModifiedDateTimestamp of last label modification.
Public propertyNameLabel's name. Name + ServerItem must be unique.
Public propertyOwnerDisplayNameDisplay name of the user who owns this label.
Public propertyOwnerNameIdentity name of the user who owns this label.
Public propertyOwnerUniqueNameUnique identity name of the user who owns this label.
Public propertyScopeServer item path representing the label's scope. Name + Scope must be unique.
Top

  NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetCachedSize
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: