Folder.Empty method

Empties the folder. Optionally, enables you to empty subfolders.

Namespace:  Microsoft.Exchange.WebServices.Data
Assembly:  Microsoft.Exchange.WebServices (in Microsoft.Exchange.WebServices.dll)

'Declaration
Public Sub Empty ( _
	deleteMode As DeleteMode, _
	deleteSubFolders As Boolean _
)
'Usage
Dim instance As Folder
Dim deleteMode As DeleteMode
Dim deleteSubFolders As Boolean

instance.Empty(deleteMode, deleteSubFolders)

Parameters

deleteMode
Type: Microsoft.Exchange.WebServices.Data.DeleteMode

The deletion mode.

deleteSubFolders
Type: System.Boolean

true to indicate that subfolders should also be deleted; otherwise, false.

Show:
© 2014 Microsoft