TeamFoundationVersionControlService.UpdateWorkspace Method
Modifies workspace properties and working folder mappings.
Workspace owner may not be changed.
Namespace: Microsoft.TeamFoundation.VersionControl.Server
Assembly: Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)
Syntax
'Declaration
Public Function UpdateWorkspace ( _
requestContext As TeamFoundationRequestContext, _
oldWorkspaceName As String, _
ownerName As String, _
newWorkspace As Workspace, _
supportedFeatures As Integer _
) As Workspace
public Workspace UpdateWorkspace(
TeamFoundationRequestContext requestContext,
string oldWorkspaceName,
string ownerName,
Workspace newWorkspace,
int supportedFeatures
)
public:
Workspace^ UpdateWorkspace(
TeamFoundationRequestContext^ requestContext,
String^ oldWorkspaceName,
String^ ownerName,
Workspace^ newWorkspace,
int supportedFeatures
)
member UpdateWorkspace :
requestContext:TeamFoundationRequestContext *
oldWorkspaceName:string *
ownerName:string *
newWorkspace:Workspace *
supportedFeatures:int -> Workspace
public function UpdateWorkspace(
requestContext : TeamFoundationRequestContext,
oldWorkspaceName : String,
ownerName : String,
newWorkspace : Workspace,
supportedFeatures : int
) : Workspace
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
oldWorkspaceName
Type: System.StringName of workspace before updating.
ownerName
Type: System.StringOwner of workspace (including domain).
newWorkspace
Type: Microsoft.TeamFoundation.VersionControl.Server.WorkspaceNew workspace properties.
supportedFeatures
Type: System.Int32The features supported by the client, an int which contains the combined values of the SupportedFeatures enumeration.
Return Value
Type: Microsoft.TeamFoundation.VersionControl.Server.Workspace
New workspace properties. May have been cleaned up by the server.
.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.