VersionSpec Methods

Include Protected Members
Include Inherited Members

The VersionSpec type exposes the following members.

Methods

  Name Description
Public methodStatic member AddDeletionModifierIfNecessary(Item) Formats an item path to include the deletion ID if it is nonzero.
Public methodStatic member AddDeletionModifierIfNecessary(String, Int32) Formats a path to include the deletion ID if it is nonzero.
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 path by using the version specifier.
Public methodStatic member FormatRange Formats a server or local path by using the version range that is 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 specification string to an array of VersionSpec objects. Accommodates a range specifier.
Public methodStatic member ParseSingleSpec Converts a version specification string to a VersionSpec object.
Public methodStatic member ParseVersionedFileSpec(String, String, String%, array<VersionSpec[]%) Parses a versioned file specification string of the form "filename;version".
Public methodStatic member ParseVersionedFileSpec(String, String, Int32%, String%, array<VersionSpec[]%) Parses a versioned file specification string of the form "filename;version" or "filename;version;deletionID".
Public methodStatic member ReorderVersionSpecs Swaps two VersionSpec instances if they are out of order.
Public method ToString Creates a user-readable string that describes this VersionSpec instance. (Overrides Object.ToString().)

Top

See Also

Reference

VersionSpec Class

Microsoft.TeamFoundation.VersionControl.Client Namespace