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)
Syntax
'Declaration
Public Function SetPermissions ( _
securityChanges As SecurityChange() _
) As SecurityChange()
'Usage
Dim instance As VersionControlServer
Dim securityChanges As SecurityChange()
Dim returnValue As SecurityChange()
returnValue = instance.SetPermissions(securityChanges)
public SecurityChange[] SetPermissions(
SecurityChange[] securityChanges
)
public:
array<SecurityChange^>^ SetPermissions(
array<SecurityChange^>^ securityChanges
)
public function SetPermissions(
securityChanges : SecurityChange[]
) : SecurityChange[]
Parameters
securityChanges
Type: array<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: array<Microsoft.TeamFoundation.VersionControl.Client.SecurityChange[]
Returns the passed SecurityChange objects that resulted in successful changes.
.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.