Delen via


Repository.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
<WebMethodAttribute> _
Public Function UpdateWorkspace ( _
    oldWorkspaceName As String, _
    ownerName As String, _
    newWorkspace As Workspace, _
    supportedFeatures As Integer _
) As Workspace
[WebMethodAttribute]
public Workspace UpdateWorkspace(
    string oldWorkspaceName,
    string ownerName,
    Workspace newWorkspace,
    int supportedFeatures
)
[WebMethodAttribute]
public:
Workspace^ UpdateWorkspace(
    String^ oldWorkspaceName, 
    String^ ownerName, 
    Workspace^ newWorkspace, 
    int supportedFeatures
)
[<WebMethodAttribute>]
member UpdateWorkspace : 
        oldWorkspaceName:string * 
        ownerName:string * 
        newWorkspace:Workspace * 
        supportedFeatures:int -> Workspace
public function UpdateWorkspace(
    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 enum.

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

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace