Microsoft.Protocols.TestSuites.MS_OXORULE.MS_OXORULEAdapter.RopEmptyFolder C# (CSharp) Method

RopEmptyFolder() public method

This ROP deletes all messages and subfolders from a folder.
public RopEmptyFolder ( uint handle, byte wantAsynchronous ) : RopEmptyFolderResponse
handle uint Handle to operate.
wantAsynchronous byte 8-bit Boolean. This value specifies whether the operation is to be executed asynchronously with status reported via RopProgress.
return Microsoft.Protocols.TestSuites.Common.RopEmptyFolderResponse
        public RopEmptyFolderResponse RopEmptyFolder(uint handle, byte wantAsynchronous)
        {
            this.rawData = null;
            this.response = null;
            this.responseSOHs = null;

            RopEmptyFolderRequest emptyFolderRequest;
            RopEmptyFolderResponse emptyFolderResponse;
            emptyFolderRequest.RopId = 0x58;
            emptyFolderRequest.LogonId = 0x00;
            emptyFolderRequest.InputHandleIndex = 0x0;

            // Synchronously
            emptyFolderRequest.WantAsynchronous = wantAsynchronous;

            // TRUE: delete all messages
            emptyFolderRequest.WantDeleteAssociated = 0xFF;
            this.responseSOHs = this.DoRPCCall(emptyFolderRequest, handle, ref this.response, ref this.rawData);
            emptyFolderResponse = (RopEmptyFolderResponse)this.response;

            return emptyFolderResponse;
        }