ExchangeClient.FolderExists

FolderExists(string, string)

Checks whether the specified folder exists.

public bool FolderExists(string parentFolderUri, string folderName)
ParameterTypeDescription
parentFolderUriStringAn uri of parent folder.
folderNameStringA folder name.

Return Value

true if the specified folder exists in the specified parent folder; otherwise, false.

Exceptions

exceptioncondition
AsposeArgumentExceptionparentFolderUri or folderName is null or empty

See Also


FolderExists(string, string, out ExchangeFolderInfo)

Checks whether the specified folder exists.

public bool FolderExists(string parentFolderUri, string folderName, out ExchangeFolderInfo folder)
ParameterTypeDescription
parentFolderUriStringAn uri of parent folder.
folderNameStringA folder name.
folderExchangeFolderInfo&A ExchangeFolderInfo that represents the found folder information, if folder exists.

Return Value

true if the specified folder exists in the specified parent folder; otherwise, false.

Exceptions

exceptioncondition
AsposeArgumentExceptionparentFolderUri or folderName is null or empty

See Also