This documentation is archived and is not being maintained.

Workspace::Update Method (String, String, String, String, array<WorkingFolder>, WorkspacePermissionProfile, Boolean)

Updates the properties of a workspace.

Namespace:  Microsoft.TeamFoundation.VersionControl.Client
Assembly:  Microsoft.TeamFoundation.VersionControl.Client (in Microsoft.TeamFoundation.VersionControl.Client.dll)

public:
void Update(
	String^ newName, 
	String^ newOwner, 
	String^ newComment, 
	String^ newComputer, 
	array<WorkingFolder^>^ newMappings, 
	WorkspacePermissionProfile^ newPermissionProfile, 
	bool removeUnparentedCloaks
)

Parameters

newName
Type: System::String

The new name.

newOwner
Type: System::String

The new owner.

newComment
Type: System::String

The new comment.

newComputer
Type: System::String

The new computer name.

newMappings
Type: array<Microsoft.TeamFoundation.VersionControl.Client::WorkingFolder>

The new mappings.

newPermissionProfile
Type: Microsoft.TeamFoundation.VersionControl.Client::WorkspacePermissionProfile

The new permission profile.

removeUnparentedCloaks
Type: System::Boolean

True to remove mapping errors that can be safely ignored. False not to remove mapping errors.

You can change the name, the comment, and the working folders. The repository is referenced by changedWorkspace. (You cannot move workspaces across repositories.)

Show: