Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Specifies a version based on a workspace name/owner.
Inheritance Hierarchy
System.Object
  Microsoft.TeamFoundation.VersionControl.Client.VersionSpec
    Microsoft.TeamFoundation.VersionControl.Client.WorkspaceVersionSpec
Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public NotInheritable Class WorkspaceVersionSpec _
    Inherits VersionSpec
public sealed class WorkspaceVersionSpec : VersionSpec
public ref class WorkspaceVersionSpec sealed : public VersionSpec
[<Sealed>]
type WorkspaceVersionSpec =  
    class 
        inherit VersionSpec 
    end
public final class WorkspaceVersionSpec extends VersionSpec
The WorkspaceVersionSpec type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| .gif) | WorkspaceVersionSpec(Workspace) | Initializes a new WorkspaceVersionSpec instance. | 
| .gif) | WorkspaceVersionSpec(WorkspaceInfo) | Initializes a new WorkspaceVersionSpec instance. | 
| .gif) | WorkspaceVersionSpec(String, String) | Initializes a new WorkspaceVersionSpec instance. | 
| .gif) | WorkspaceVersionSpec(String, String, String) | Construct a WorkspaceVersionSpec based the specified workspace name and owner. | 
Top
Properties
| Name | Description | |
|---|---|---|
| .gif) | DisplayString | Gets the string representation of the version specification. (Inherited from VersionSpec.) | 
| .gif) | Name | Gets or sets the name of the workspace. | 
| .gif) | OwnerDisplayName | Gets or sets the displayed owner name of the workspace. | 
| .gif) | OwnerName | Gets or sets the owner of the workspace. | 
Top
Methods
| Name | Description | |
|---|---|---|
| .gif) | Equals | Compares this WorkspaceVersionSpec instance with another. (Overrides Object.Equals(Object).) | 
| .gif) | Format | Formats a path by using the version specifier. (Inherited from VersionSpec.) | 
| .gif) | GetHashCode | Generates a hash code for this instance. (Overrides Object.GetHashCode().) | 
| .gif) | GetType | Gets the Type of the current instance. (Inherited from Object.) | 
| .gif) | ToString | Creates a user-readable string that describes the properties of a workspace. (Overrides VersionSpec.ToString().) | 
Top
Fields
| Name | Description | |
|---|---|---|
| .gif) .gif) | Identifier | Identifier for this version specification in command-line usage. | 
Top
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.