public class MessageStore extends Object
Message store is the root of the PST, which is the rough equivalent of the top of a Mailbox.
| Modifier and Type | Method and Description |
|---|---|
void |
changeDisplayName(String newName)
Changes the pst display name.
|
void |
changePassword(String password)
Sets the password.
|
String |
getDisplayName()
Gets the display Name of PST.
|
MapiPropertyCollection |
getProperties()
Gets the MAPI properties of message store object.
|
int |
getTotalItemsCount()
Gets the total items count.
|
boolean |
isPasswordProtected()
Gets a value indicating whether the storage is password protected.
|
boolean |
isPasswordValid(String password)
Determines whether the specified string is a valid password for the storage.
|
void |
setProperty(MapiProperty property)
Sets the property.
|
public final String getDisplayName()
Gets the display Name of PST.
Value: The string that represents display name.public final MapiPropertyCollection getProperties()
Gets the MAPI properties of message store object. The message store contains the top-level PST settings and metadata that are required to access and manage the PST contents.
Value: TheMapiProperty collection.public final boolean isPasswordProtected()
Gets a value indicating whether the storage is password protected.
Value:true if the storage is password protected; otherwise, false.public final int getTotalItemsCount()
Gets the total items count. Returns the total number of message items contained in the PST.
public final boolean isPasswordValid(String password)
Determines whether the specified string is a valid password for the storage.
password - The password string.public final void changeDisplayName(String newName)
Changes the pst display name.
newName - The new display name of message store.ArgumentNullException - Thrown when the display name of the message store is provided as null or empty.NotImplementedException - Thrown when attempting to edit the ANSI file version.public final void changePassword(String password)
Sets the password.
password - The string that represents the password.NotImplementedException - Thrown when attempting to edit the ANSI file version.public final void setProperty(MapiProperty property)
Sets the property.
property - The property.NotImplementedException - Thrown when attempting to edit the ANSI file version.Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.