Поделиться через


VersionControlLabel Class

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

Inheritance Hierarchy

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

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

Syntax

'Declaration
<RequiredClientServiceAttribute("VersionControlServer")> _
<CallOnDeserializationAttribute("AfterDeserialize")> _
Public Class VersionControlLabel _
    Implements ICacheable
[RequiredClientServiceAttribute("VersionControlServer")]
[CallOnDeserializationAttribute("AfterDeserialize")]
public class VersionControlLabel : ICacheable
[RequiredClientServiceAttribute(L"VersionControlServer")]
[CallOnDeserializationAttribute(L"AfterDeserialize")]
public ref class VersionControlLabel : ICacheable
[<RequiredClientServiceAttribute("VersionControlServer")>]
[<CallOnDeserializationAttribute("AfterDeserialize")>]
type VersionControlLabel =  
    class 
        interface ICacheable 
    end
public class VersionControlLabel implements ICacheable

The VersionControlLabel type exposes the following members.

Constructors

  Name Description
Public method VersionControlLabel

Top

Properties

  Name Description
Public property Comment The label's comment, or null to leave alone.
Public property Items A list of items and their versions that are contained in the label. Only used in the result of QueryLabels where includeItems = true.
Public property LabelId The label's ID, as represented in the database. The label ID is used to generate the artifact name.
Public property LastModifiedDate Timestamp of last label modification.
Public property Name Label's name. Name + ServerItem must be unique.
Public property OwnerDisplayName Display name of the user who owns this label.
Public property OwnerName Identity name of the user who owns this label.
Public property OwnerUniqueName Unique identity name of the user who owns this label.
Public property Scope Server item path representing the label's scope. Name + Scope must be unique.

Top

Methods

  Name Description
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetCachedSize
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

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

See Also

Reference

Microsoft.TeamFoundation.VersionControl.Server Namespace