Class UserConfiguration
- Namespace
- Microsoft.Exchange.WebServices.Data
- Assembly
- Microsoft.Exchange.WebServices.dll
Represents an object that can be used to store user-defined configuration settings.
public class UserConfiguration
- Inheritance
-
UserConfiguration
- Inherited Members
Constructors
UserConfiguration(ExchangeService)
Initializes a new instance of UserConfiguration class.
public UserConfiguration(ExchangeService service)
Parameters
service
ExchangeServiceThe service to which the user configuration is bound.
Properties
BinaryData
Gets or sets the binary data of the user configuration.
public byte[] BinaryData { get; set; }
Property Value
- byte[]
Dictionary
Gets the dictionary of the user configuration.
public UserConfigurationDictionary Dictionary { get; }
Property Value
IsDirty
Gets a value indicating whether this user configuration has been modified.
public bool IsDirty { get; }
Property Value
ItemId
Gets the Id of the user configuration.
public ItemId ItemId { get; }
Property Value
Name
Gets the name of the user configuration.
public string Name { get; }
Property Value
ParentFolderId
Gets the Id of the folder containing the user configuration.
public FolderId ParentFolderId { get; }
Property Value
XmlData
Gets or sets the xml data of the user configuration.
public byte[] XmlData { get; set; }
Property Value
- byte[]
Methods
Bind(ExchangeService, string, FolderId, UserConfigurationProperties)
Binds to an existing user configuration and loads the specified properties. Calling this method results in a call to EWS.
public static UserConfiguration Bind(ExchangeService service, string name, FolderId parentFolderId, UserConfigurationProperties properties)
Parameters
service
ExchangeServiceThe service to which the user configuration is bound.
name
stringThe name of the user configuration.
parentFolderId
FolderIdThe Id of the folder containing the user configuration.
properties
UserConfigurationPropertiesThe properties to load.
Returns
- UserConfiguration
A user configuration instance.
Bind(ExchangeService, string, WellKnownFolderName, UserConfigurationProperties)
Binds to an existing user configuration and loads the specified properties. Calling this method results in a call to EWS.
public static UserConfiguration Bind(ExchangeService service, string name, WellKnownFolderName parentFolderName, UserConfigurationProperties properties)
Parameters
service
ExchangeServiceThe service to which the user configuration is bound.
name
stringThe name of the user configuration.
parentFolderName
WellKnownFolderNameThe name of the folder containing the user configuration.
properties
UserConfigurationPropertiesThe properties to load.
Returns
- UserConfiguration
A user configuration instance.
Delete()
Deletes the user configuration. Calling this method results in a call to EWS.
public void Delete()
Load(UserConfigurationProperties)
Loads the specified properties on the user configuration. Calling this method results in a call to EWS.
public void Load(UserConfigurationProperties properties)
Parameters
properties
UserConfigurationPropertiesThe properties to load.
Save(string, FolderId)
Saves the user configuration. Calling this method results in a call to EWS.
public void Save(string name, FolderId parentFolderId)
Parameters
name
stringThe name of the user configuration.
parentFolderId
FolderIdThe Id of the folder in which to save the user configuration.
Save(string, WellKnownFolderName)
Saves the user configuration. Calling this method results in a call to EWS.
public void Save(string name, WellKnownFolderName parentFolderName)
Parameters
name
stringThe name of the user configuration.
parentFolderName
WellKnownFolderNameThe name of the folder in which to save the user configuration.
Update()
Updates the user configuration by applying local changes to the Exchange server. Calling this method results in a call to EWS.
public void Update()