Partager via


LabelVersionSpec Class

Represents version as a label.

Inheritance Hierarchy

System.Object
  Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
    Microsoft.TeamFoundation.VersionControl.Client.LabelVersionSpec

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

Syntax

'Declaration
Public NotInheritable Class LabelVersionSpec _
    Inherits VersionSpec
public sealed class LabelVersionSpec : VersionSpec
public ref class LabelVersionSpec sealed : public VersionSpec
[<Sealed>]
type LabelVersionSpec =  
    class 
        inherit VersionSpec 
    end
public final class LabelVersionSpec extends VersionSpec

The LabelVersionSpec type exposes the following members.

Constructors

  Name Description
Public method LabelVersionSpec(String) Initializes a new LabelVersionSpec object.
Public method LabelVersionSpec(String, String) Initializes a new LabelVersionSpec object.

Top

Properties

  Name Description
Public property DisplayString Gets the string representation of the version specification. (Inherited from VersionSpec.)
Public property Label Gets or sets the label.
Public property Scope Gets or sets the scope.

Top

Methods

  Name Description
Public method Equals Determines whether this instance is equal to the specified instance. (Overrides Object.Equals(Object).)
Public method Format Formats a path by using the version specifier. (Inherited from VersionSpec.)
Public method GetHashCode Generates a hash code for this instance. (Overrides Object.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method ToString Creates a user-readable string that describes the properties of a LabelVersionSpec object. (Overrides VersionSpec.ToString().)

Top

Fields

  Name Description
Public fieldStatic member Identifier The identifier.

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.Client Namespace