VersionSpec Class

A base class for encapsulating version specifications.

Allows several different types of versions.

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

public abstract class VersionSpec : IComparable<VersionSpec>

The VersionSpec type exposes the following members.

  NameDescription
Protected methodVersionSpec
Top

  NameDescription
Public methodCompareToCompares two version specs. Sorts by type name followed by version data.
Public methodEquals (Overrides Object.Equals(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 methodGetHashCode (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodStatic memberParse(String, String)Given a version string convert it to an array of VersionSpec objects. If the version specification did not contain a range specifier then this will return an array of size one. Otherwise, an array of size two.
Public methodStatic memberParse(String, String, String)Given a version string convert it to an array of VersionSpec objects. If the version specification did not contain a range specifier then this will return an array of size one. Otherwise, an array of size two.
Public methodStatic memberParseSingleSpec(String, String)Given a version string (without a range specifier), convert it to a VersionSpec object.
Public methodStatic memberParseSingleSpec(String, String, String)Given a version string (without a range specifier), convert it to a VersionSpec object.
Public methodToChangesetTranslates this version spec into a changeset number for the given item spec. If the version specifier cannot be represented as a changeset, returns UnknownChangeset.
Public methodToDBStringTranslates this version spec into a string version spec to be passed to the database.
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: