共用方式為


Workstation.GetLocalWorkspaceInfo Method

Include Protected Members
Include Inherited Members

Gets the cached local workspace information for the specified workspace.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

  Name Description
Public method GetLocalWorkspaceInfo(String) Gets the cached local workspace information for the workspace that contains the specified path.
Public method GetLocalWorkspaceInfo(Guid, String, String) Given a Team Project Collection instance ID, workspace name, and workspace owner, looks in the local workspace cache to find a corresponding WorkspaceInfo object. Display names are accepted for the workspace owner string, but if the (name, owner) combination is ambiguous, a MultipleWorkspacesFoundException may be thrown. Passing RepositoryConstants.AuthenticatedUser for "workspaceOwner" is not valid, since no context exists to translate it into the authorized user.
Public method GetLocalWorkspaceInfo(VersionControlServer, String, String) Gets the cached local workspace information for the specified workspace.

Top

See Also

Reference

Workstation Class

Microsoft.TeamFoundation.VersionControl.Client Namespace