Share via


ExchangeServiceBinding.DeleteFolder Method

Deletes a folder from the mailbox.

Namespace:  Microsoft.SharePoint.Portal.WebControls
Assembly:  Microsoft.SharePoint.Portal (in Microsoft.SharePoint.Portal.dll)

Syntax

'Declaration
<SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/DeleteFolder", Use := SoapBindingUse.Literal,  _
    ParameterStyle := SoapParameterStyle.Bare)> _
<SoapHeaderAttribute("ServerVersionInfoValue", Direction := SoapHeaderDirection.Out)> _
<SoapHeaderAttribute("ExchangeImpersonation")> _
<SoapHeaderAttribute("MailboxCulture")> _
<SoapHeaderAttribute("SerializedSecurityContext")> _
Public Function DeleteFolder ( _
    DeleteFolder1 As DeleteFolderType _
) As DeleteFolderResponseType
'Usage
Dim instance As ExchangeServiceBinding
Dim DeleteFolder1 As DeleteFolderType
Dim returnValue As DeleteFolderResponseType

returnValue = instance.DeleteFolder(DeleteFolder1)
[SoapDocumentMethodAttribute("https://schemas.microsoft.com/exchange/services/2006/messages/DeleteFolder", Use = SoapBindingUse.Literal, 
    ParameterStyle = SoapParameterStyle.Bare)]
[SoapHeaderAttribute("ServerVersionInfoValue", Direction = SoapHeaderDirection.Out)]
[SoapHeaderAttribute("ExchangeImpersonation")]
[SoapHeaderAttribute("MailboxCulture")]
[SoapHeaderAttribute("SerializedSecurityContext")]
public DeleteFolderResponseType DeleteFolder(
    DeleteFolderType DeleteFolder1
)

Parameters

Return Value

Type: Microsoft.SharePoint.Portal.WebControls.DeleteFolderResponseType

See Also

Reference

ExchangeServiceBinding Class

ExchangeServiceBinding Members

Microsoft.SharePoint.Portal.WebControls Namespace