This documentation is archived and is not being maintained.
VersionSpec Class
Visual Studio 2013
A base class for encapsulating version specifications.
Allows several different types of versions.
System::Object
Microsoft.TeamFoundation.VersionControl.Server::VersionSpec
Microsoft.TeamFoundation.VersionControl.Server::ChangesetVersionSpec
Microsoft.TeamFoundation.VersionControl.Server::DateVersionSpec
Microsoft.TeamFoundation.VersionControl.Server::LabelVersionSpec
Microsoft.TeamFoundation.VersionControl.Server::LatestVersionSpec
Microsoft.TeamFoundation.VersionControl.Server::WorkspaceVersionSpec
Microsoft.TeamFoundation.VersionControl.Server::VersionSpec
Microsoft.TeamFoundation.VersionControl.Server::ChangesetVersionSpec
Microsoft.TeamFoundation.VersionControl.Server::DateVersionSpec
Microsoft.TeamFoundation.VersionControl.Server::LabelVersionSpec
Microsoft.TeamFoundation.VersionControl.Server::LatestVersionSpec
Microsoft.TeamFoundation.VersionControl.Server::WorkspaceVersionSpec
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
The VersionSpec type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CompareTo | Compares two version specs. Sorts by type name followed by version data. |
![]() | Equals | (Overrides Object::Equals(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.) |
![]() | GetHashCode | (Overrides Object::GetHashCode().) |
![]() | 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) | 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. |
![]() ![]() | Parse(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. |
![]() ![]() | ParseSingleSpec(String, String) | Given a version string (without a range specifier), convert it to a VersionSpec object. |
![]() ![]() | ParseSingleSpec(String, String, String) | Given a version string (without a range specifier), convert it to a VersionSpec object. |
![]() | ToChangeset | Translates this version spec into a changeset number for the given item spec. If the version specifier cannot be represented as a changeset, returns UnknownChangeset. |
![]() | ToDBString | Translates this version spec into a string version spec to be passed to the database. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Show:
