Share via


ExchangeServiceBinding.GetFolder Method

The GetFolder method sends the request to and gets the response from a GetFolder operation.

Namespace:  ExchangeWebServices
Assembly:  EWS (in EWS.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/GetFolder", Use := SoapBindingUse.Literal,  _
    ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("TimeZoneContext")> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapHeaderAttribute("RequestServerVersionValue")> _
Public Function GetFolder ( _
    GetFolder1 As GetFolderType _
) As GetFolderResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim GetFolder1 As GetFolderType
Dim returnValue As GetFolderResponseType

returnValue = instance.GetFolder(GetFolder1)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/GetFolder", Use = SoapBindingUse.Literal, 
    ParameterStyle = SoapParameterStyle.Bare)]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("TimeZoneContext")]
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("MailboxCulture")]
[SoapHeaderAttribute("RequestServerVersionValue")]
public GetFolderResponseType GetFolder(
    GetFolderType GetFolder1
)

Parameters

Return Value

Type: ExchangeWebServices.GetFolderResponseType
The GetFolder method returns a GetFolderResponseType object that contains the status of the GetFolder operation and a set of folders.