Microsoft.Protocols.TestSuites.MS_OXCFOLD.S05_InsufficientRightsOnFolder.GetPermissionDataArrayForAdd C# (CSharp) Method

GetPermissionDataArrayForAdd() private method

Set the permission data array for the specified user.
private GetPermissionDataArrayForAdd ( string userEssdn, uint rights ) : PermissionData[]
userEssdn string The ESSDN of the specified user.
rights uint The rights which will be assigned to the specified user.
return PermissionData[]
        private PermissionData[] GetPermissionDataArrayForAdd(string userEssdn, uint rights)
        {
            PropertyValue[] propertyValues = new PropertyValue[2];
            propertyValues[0] = this.CreateRightsProperty(rights);
            propertyValues[1] = this.CreateEntryIdProperty(userEssdn);

            PermissionData[] permissionsDataArray = new PermissionData[1];
            permissionsDataArray[0].PermissionDataFlags = (byte)PermissionDataFlags.AddRow;
            permissionsDataArray[0].PropertyValueCount = (ushort)propertyValues.Length;
            permissionsDataArray[0].PropertyValues = propertyValues;

            return permissionsDataArray;
        }