Workstation.GetLocalWorkspaceInfo Method (VersionControlServer, String, String)
Get the cached local WorkspaceInfo for the specified Workspace.
Namespace: Microsoft.TeamFoundation.VersionControl.Client
Assembly: Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)
Syntax
'Declaration
Public Function GetLocalWorkspaceInfo ( _
sourceControl As VersionControlServer, _
workspaceName As String, _
workspaceOwner As String _
) As WorkspaceInfo
'Usage
Dim instance As Workstation
Dim sourceControl As VersionControlServer
Dim workspaceName As String
Dim workspaceOwner As String
Dim returnValue As WorkspaceInfo
returnValue = instance.GetLocalWorkspaceInfo(sourceControl, _
workspaceName, workspaceOwner)
public WorkspaceInfo GetLocalWorkspaceInfo(
VersionControlServer sourceControl,
string workspaceName,
string workspaceOwner
)
public:
WorkspaceInfo^ GetLocalWorkspaceInfo(
VersionControlServer^ sourceControl,
String^ workspaceName,
String^ workspaceOwner
)
public function GetLocalWorkspaceInfo(
sourceControl : VersionControlServer,
workspaceName : String,
workspaceOwner : String
) : WorkspaceInfo
Parameters
sourceControl
Type: Microsoft.TeamFoundation.VersionControl.Client.VersionControlServerThe server associated with the specified workspace.
workspaceName
Type: System.StringThe name of the workspace.
workspaceOwner
Type: System.StringThe workspace owner.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspaceInfo
Returns the WorkspaceInfo object which describes the containing Workspace, or nulla null reference (Nothing in Visual Basic) if it is not in a Workspace.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.