Working with User Configuration on Server
Managing User Configuration
Aspose.Email for .NET can be used to manage user configuration on an Exchange Server with the EWSClient class. This class uses Exchange Web Services, which are only available in Exchange Server 2007 and later releases. In this article, we will see how to read, create, update, and delete user configurations on Exchange Server 2010. Microsoft Exchange Server 2010 Service Pack 1 is required for all the features described in this article. The following code snippet shows you how to connect to Exchange Server 2010 in all the examples in this article.
Reading User Configuration
To get the user configuration information of a specific folder from the Exchange Server:
- Connect to Exchange Server using the IEWSClient interface.
- Call the IEWSClient.GetUserConfiguration() method to get the user configuration for a folder.
- Display the user configuration properties like ID, name and dictionary items as key-value pairs.
The following code snippet shows you how to read user configuration.
Creating User Configurations
To create the user configuration for a specific folder on an Exchange Server:
- Connect to the Exchange Server using the IEWSClient interface.
- Call the IEWSClient.CreateUserConfiguration() method to create the user configuration for a folder.
The following code snippet shows you how to create user configurations.
Updating User Configuration
To update the user configuration for a specific folder in the Exchange Server:
- Connect to the Exchange Server using the IEWSClient interface.
- Call the IEWSClient.UpdateUserConfiguration() method to update the user configuration for a folder.
The following code snippet shows you how to update user configuration.
Deleting User Configuration
To delete the user configuration for a specific folder in the Exchange Server:
- Connect to the Exchange Server using the IEWSClient interface.
- Call the IEWSClient.DeleteUserConfiguration() method to delete the user configuration for a folder.
The following code snippet shows you how to delete user configuration.