SetPermissions Method
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

VersionControlServer.SetPermissions Method

Sets the permissions for items in the database.

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

public SecurityChange[] SetPermissions(
	SecurityChange[] securityChanges
)

Parameters

securityChanges
Type: Microsoft.TeamFoundation.VersionControl.Client.SecurityChange[]

The list of changes to send to the server. A SecurityChange is an abstract base class. Each object you pass must be one of two child classes; a PermissionChange (changes the permissions for this item) or an InheritanceChange (changes whether this item inherits permissions from its parent folder). Both classes represent their information as strings. This method is optimized for input that came directly from the user.

Return Value

Type: Microsoft.TeamFoundation.VersionControl.Client.SecurityChange[]
Returns the passed SecurityChange objects that resulted in successful changes.

Show:
© 2016 Microsoft