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)
Syntax
'Declaration
Public Sub Update ( _
newName As String, _
newOwner As String, _
newComment As String, _
newComputer As String, _
newMappings As WorkingFolder(), _
newPermissionProfile As WorkspacePermissionProfile, _
removeUnparentedCloaks As Boolean _
)
public void Update(
string newName,
string newOwner,
string newComment,
string newComputer,
WorkingFolder[] newMappings,
WorkspacePermissionProfile newPermissionProfile,
bool removeUnparentedCloaks
)
public:
void Update(
String^ newName,
String^ newOwner,
String^ newComment,
String^ newComputer,
array<WorkingFolder^>^ newMappings,
WorkspacePermissionProfile^ newPermissionProfile,
bool removeUnparentedCloaks
)
member Update :
newName:string *
newOwner:string *
newComment:string *
newComputer:string *
newMappings:WorkingFolder[] *
newPermissionProfile:WorkspacePermissionProfile *
removeUnparentedCloaks:bool -> unit
public function Update(
newName : String,
newOwner : String,
newComment : String,
newComputer : String,
newMappings : WorkingFolder[],
newPermissionProfile : WorkspacePermissionProfile,
removeUnparentedCloaks : boolean
)
Parameters
newName
Type: System.StringThe new name.
newOwner
Type: System.StringThe new owner.
newComment
Type: System.StringThe new comment.
newComputer
Type: System.StringThe new computer name.
newMappings
Type: array<Microsoft.TeamFoundation.VersionControl.Client.WorkingFolder[]The new mappings.
newPermissionProfile
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspacePermissionProfileThe new permission profile.
removeUnparentedCloaks
Type: System.BooleanTrue to remove mapping errors that can be safely ignored. False not to remove mapping errors.
Remarks
You can change the name, the comment, and the working folders. The repository is referenced by changedWorkspace. (You cannot move workspaces across repositories.)
.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.