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

GetFolder() public method

Get folders, Calendar folders, Contacts folders, Tasks folders, and search folders.
public GetFolder ( GetFolderType request ) : GetFolderResponseType
request Microsoft.Protocols.TestSuites.Common.GetFolderType Request of GetFolder operation.
return GetFolderResponseType
        public GetFolderResponseType GetFolder(GetFolderType request)
        {
            // Send the request and get the response.
            GetFolderResponseType response = this.exchangeServiceBinding.GetFolder(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.VerifyGetFolderResponse(response, this.exchangeServiceBinding.IsSchemaValidated);
                this.VerifyAllRelatedRequirements(this.exchangeServiceBinding.IsSchemaValidated, response);
            }

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

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

            return response;
        }