GetUserConfiguration method

Future<UserConfiguration> GetUserConfiguration(
  1. String name,
  2. FolderId parentFolderId,
  3. Set<UserConfigurationProperties> properties
)
Gets a UserConfiguration. Name of the UserConfiguration to retrieve. Id of the folder containing the UserConfiguration. Properties to retrieve.

Implementation

Future<UserConfiguration> GetUserConfiguration(
  String name,
  FolderId parentFolderId,
  Set<UserConfigurationProperties> properties,
) async {
  EwsUtilities.ValidateParam(name, "name");
  EwsUtilities.ValidateParam(parentFolderId, "parentFolderId");

  GetUserConfigurationRequest request = GetUserConfigurationRequest(this);

  request.Name = name;
  request.ParentFolderId = parentFolderId;
  request.Properties = properties;

  return (await request.Execute())[0].UserConfiguration;
}