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
'宣告
Public Sub Update ( _
newName As String, _
newOwner As String, _
newComment As String, _
newComputer As String, _
newMappings As WorkingFolder(), _
newPermissionProfile As WorkspacePermissionProfile, _
fixMappingErrors As Boolean _
)
public void Update(
string newName,
string newOwner,
string newComment,
string newComputer,
WorkingFolder[] newMappings,
WorkspacePermissionProfile newPermissionProfile,
bool fixMappingErrors
)
public:
void Update(
String^ newName,
String^ newOwner,
String^ newComment,
String^ newComputer,
array<WorkingFolder^>^ newMappings,
WorkspacePermissionProfile^ newPermissionProfile,
bool fixMappingErrors
)
member Update :
newName:string *
newOwner:string *
newComment:string *
newComputer:string *
newMappings:WorkingFolder[] *
newPermissionProfile:WorkspacePermissionProfile *
fixMappingErrors:bool -> unit
public function Update(
newName : String,
newOwner : String,
newComment : String,
newComputer : String,
newMappings : WorkingFolder[],
newPermissionProfile : WorkspacePermissionProfile,
fixMappingErrors : boolean
)
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.
- fixMappingErrors
Type: System.Boolean
True to remove mapping errors that can be safely ignored. False to not remove mapping errors.
Remarks
The name, comment, and working folders may be changed. The repository is the one that is referenced by changedWorkspace (workspaces cannot be moved 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.