Microsoft.Protocols.TestSuites.MS_OXWSFOLD.MS_OXWSFOLDAdapter.EmptyFolder C# (CSharp) Method

EmptyFolder() public method

Empty identified folders and can be used to delete the subfolders of the specified folder.
public EmptyFolder ( EmptyFolderType request ) : EmptyFolderResponseType
request Microsoft.Protocols.TestSuites.Common.EmptyFolderType Request of EmptyFolder operation.
return EmptyFolderResponseType
        public EmptyFolderResponseType EmptyFolder(EmptyFolderType request)
        {
            // Send the request and get the response.
            EmptyFolderResponseType response = this.exchangeServiceBinding.EmptyFolder(request);
            Site.Assert.IsNotNull(response, "If the operation is successful, the response should not be null.");

            if (ResponseClassType.Success == response.ResponseMessages.Items[0].ResponseClass)
            {
                this.VerifyEmptyFolderResponse(this.exchangeServiceBinding.IsSchemaValidated);
                this.VerifyAllRelatedRequirements(this.exchangeServiceBinding.IsSchemaValidated, response);
            }

            // Verify transport type related requirement.
            this.VerifyTransportType();

            // Verify soap version.
            this.VerifySoapVersion();

            return response;
        }