Export (0) Print
Expand All

VersionSpec Class

A utility class to parse version specifications.

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

public abstract class VersionSpec

The VersionSpec type exposes the following members.

  NameDescription
Protected methodVersionSpecInitializes a new VersionSpec instance.
Top

  NameDescription
Public propertyDisplayStringGets the string representation of the version specification.
Public propertyStatic memberLatestGets the latest version of this VersionSpec in the repository.
Top

  NameDescription
Public methodStatic memberAddDeletionModifierIfNecessary(Item)Formats an item path to include the deletion ID if it is nonzero.
Public methodStatic memberAddDeletionModifierIfNecessary(String, Int32)Formats a path to include the deletion ID if it is nonzero.
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 methodFormatFormats a path by using the version specifier.
Public methodStatic memberFormatRangeFormats a server or local path by using the version range that is specified.
Public methodGetHashCodeServes as a hash function for a particular type. (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 methodStatic memberParse(String, String)Converts a version specification string to an array of VersionSpec objects. Accommodates a range specifier.
Public methodStatic memberParse(String, String, String)Given a version string convert it to an array 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)Converts a version specification string 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 methodStatic memberParseVersionedFileSpec(String, String, String, VersionSpec[])Parses a versioned file specification string of the form "filename;version".
Public methodStatic memberParseVersionedFileSpec(String, String, Int32, String, VersionSpec[])Parses a versioned file specification string of the form "filename;version" or "filename;version;deletionID".
Public methodStatic memberParseVersionedFileSpec(String, String, String, Int32, String, VersionSpec[])Parse a versioned file spec of the form filename;version or filename;version;deletionID.
Public methodStatic memberReorderVersionSpecsSwaps two VersionSpec instances if they are out of order.
Public methodToStringCreates a user-readable string that describes this VersionSpec instance. (Overrides Object.ToString().)
Top

  NameDescription
Public fieldStatic memberDeletionModifierDeletion identifier; a version modifier.
Public fieldStatic memberRangeSeparatorCharacter that is used to separate the components of a version specification range.
Public fieldStatic memberSeparatorCharacter that is used to separate a file name from its version specification.
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:
© 2014 Microsoft