This documentation is archived and is not being maintained.
VersionSpec Class
Visual Studio 2013
A utility class to parse version specifications.
System.Object
Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
Microsoft.TeamFoundation.VersionControl.Client.ChangesetVersionSpec
Microsoft.TeamFoundation.VersionControl.Client.DateVersionSpec
Microsoft.TeamFoundation.VersionControl.Client.LabelVersionSpec
Microsoft.TeamFoundation.VersionControl.Client.LatestVersionSpec
Microsoft.TeamFoundation.VersionControl.Client.WorkspaceVersionSpec
Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
Microsoft.TeamFoundation.VersionControl.Client.ChangesetVersionSpec
Microsoft.TeamFoundation.VersionControl.Client.DateVersionSpec
Microsoft.TeamFoundation.VersionControl.Client.LabelVersionSpec
Microsoft.TeamFoundation.VersionControl.Client.LatestVersionSpec
Microsoft.TeamFoundation.VersionControl.Client.WorkspaceVersionSpec
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
The VersionSpec type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | DisplayString | Gets the string representation of the version specification. |
![]() ![]() | Latest | Gets the latest version of this VersionSpec in the repository. |
| Name | Description | |
|---|---|---|
![]() ![]() | AddDeletionModifierIfNecessary(Item) | Formats an item path to include the deletion ID if it is nonzero. |
![]() ![]() | AddDeletionModifierIfNecessary(String, Int32) | Formats a path to include the deletion ID if it is nonzero. |
![]() | Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | Format | Formats a path by using the version specifier. |
![]() ![]() | FormatRange | Formats a server or local path by using the version range that is specified. |
![]() | GetHashCode | Serves as the default hash function. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() ![]() | Parse(String, String) | Converts a version specification string to an array of VersionSpec objects. Accommodates a range specifier. |
![]() ![]() | Parse(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. |
![]() ![]() | ParseSingleSpec(String, String) | Converts a version specification string to a VersionSpec object. |
![]() ![]() | ParseSingleSpec(String, String, String) | Given a version string (without a range specifier), convert it to a VersionSpec object. |
![]() ![]() | ParseVersionedFileSpec(String, String, String, VersionSpec()) | Parses a versioned file specification string of the form "filename;version". |
![]() ![]() | ParseVersionedFileSpec(String, String, Int32, String, VersionSpec()) | Parses a versioned file specification string of the form "filename;version" or "filename;version;deletionID". |
![]() ![]() | ParseVersionedFileSpec(String, String, String, Int32, String, VersionSpec()) | Parse a versioned file spec of the form filename;version or filename;version;deletionID. |
![]() ![]() | ReorderVersionSpecs | Swaps two VersionSpec instances if they are out of order. |
![]() | ToString | Creates a user-readable string that describes this VersionSpec instance. (Overrides Object.ToString.) |
| Name | Description | |
|---|---|---|
![]() ![]() | DeletionModifier | Deletion identifier; a version modifier. |
![]() ![]() | RangeSeparator | Character that is used to separate the components of a version specification range. |
![]() ![]() | Separator | Character that is used to separate a file name from its version specification. |
Show:
