Delen via


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

  • oldWorkspaceName
    Type: System.String

    Name of workspace before updating.

  • ownerName
    Type: System.String

    Owner of workspace (including domain).

  • supportedFeatures
    Type: System.Int32

    The 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

See Also

Reference

TeamFoundationVersionControlService Class

Microsoft.TeamFoundation.VersionControl.Server Namespace