Share via


VersionSpec Members

Include Protected Members
Include Inherited Members

A utility class for parsing version specifications.

The VersionSpec type exposes the following members.

Constructors

 

Name

Description

Protected method

VersionSpec

Top

Methods

 

Name

Description

Public methodStatic member

AddDeletionModifierIfNecessary

Formats a path to include the deletion identifier if it is non-zero.

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

Format

Formats a server or local path with the version specifier.

Public methodStatic member

FormatRange

Formats a server or local path with the version range specified.

Public method

GetHashCode

Serves as a hash function for a particular type. (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 methodStatic member

Parse

Converts a version string into an array of VersionSpec objects.

Public methodStatic member

ParseSingleSpec

Converts a version string without a range specifier to a [VersionSpec] object.

Public methodStatic member

ParseVersionedFileSpec

Overloaded. Parse a versioned file spec.

Public methodStatic member

ReorderVersionSpecs

Reorders VersionSpec instances in into the correct order.

Public method

ToString

(Overrides Object.ToString().)

Top

Fields

 

Name

Description

Public fieldStatic member

DeletionModifier

Deletion identifier. This is not a version specification, but rather a version modifier.

Public fieldStatic member

RangeSeparator

Character used to separate the components of a version specification range.

Public fieldStatic member

Separator

Character used to separate a file name from its version specification.

Top

Properties

 

Name

Description

Public property

DisplayString

Gets the string representation of the version specification as a version specification format.

Public propertyStatic member

Latest

Gets the VersionSpec that is the latest version requested from the database.

Top

See Also

Reference

VersionSpec Class

Microsoft.TeamFoundation.VersionControl.Client Namespace