Microsoft.Protocols.TestSuites.MS_OXCPERM.MS_OXCPERMAdapter.RetrievePermissionsList C# (CSharp) Method

RetrievePermissionsList() private method

Retrieve the permission list for a user of the folder
private RetrievePermissionsList ( FolderTypeEnum folderType, uint folderHandle, RequestBufferFlags requestBufferFlags ) : uint
folderType FolderTypeEnum Folder type
folderHandle uint Folder handle of the folder specified by argument folderType.
requestBufferFlags RequestBufferFlags The TableFlags or the ModifyFlags
return uint
        private uint RetrievePermissionsList(FolderTypeEnum folderType, uint folderHandle, RequestBufferFlags requestBufferFlags)
        {
            this.responseSOHs = this.DoRopCall(this.CreateGetPermissionsTableRequestBuffer(requestBufferFlags), (uint)folderHandle, ref this.response, ref this.rawData);
            RopGetPermissionsTableResponse getPermissionsTableResponse = (RopGetPermissionsTableResponse)this.response;
            Site.Assert.AreEqual<uint>(UINT32SUCCESS, getPermissionsTableResponse.ReturnValue, "0 indicates the RopGetPermissionsTable operates successfully.");

            this.VerifyGetPermissionHandle(getPermissionsTableResponse.ReturnValue);
            this.VerifyReturnValueSuccessForGetPermission(getPermissionsTableResponse.ReturnValue);

            uint tableHandle = this.responseSOHs[0][getPermissionsTableResponse.OutputHandleIndex];

            PropertyTag[] propertyTags = this.CreateHierarchyTablePropertyTagsForPermissionUser();
            this.DoRopCall(this.CreateSetColumnsRequestBuffer(propertyTags), tableHandle, ref this.response, ref this.rawData);
            RopSetColumnsResponse ropSetColumnsResponse = (RopSetColumnsResponse)this.response;
            Site.Assert.AreEqual<uint>(UINT32SUCCESS, ropSetColumnsResponse.ReturnValue, "0 indicates the RopSetColumns operates successfully.");

            this.DoRopCall(this.CreateQueryRowsRequestBuffer(), tableHandle, ref this.response, ref this.rawData);
            RopQueryRowsResponse queryRowsResponse = (RopQueryRowsResponse)this.response;

            return queryRowsResponse.ReturnValue;
        }
MS_OXCPERMAdapter