/// <summary> /// Initializes a new instance of the /// ExchangeOnPremisesConnectionOption class. /// </summary> /// <param name="basicCredential">The Exchange on-premises service /// account must have a mailbox and the following roles: /// ApplicationImpersonation, /// Exchange Servers, /// Mail Recipients, /// Mail Recipient Creation, /// Distribution Groups, /// Mailbox Search, /// Active Directory, /// To migrate source public folders, /// make sure a root folder with the same name exists in the /// destination and the service account has the Owner permission level /// to the root folder.</param> public ExchangeOnPremisesConnectionOption(BasicCredential basicCredential = default(BasicCredential), ExchangeServerOption exchangeServerOption = default(ExchangeServerOption), string connectionId = default(string)) { BasicCredential = basicCredential; ExchangeServerOption = exchangeServerOption; ConnectionId = connectionId; CustomInit(); }
/// <summary> /// Initializes a new instance of the PSTFileConnectionOption class. /// </summary> /// <param name="path">UNC Path</param> /// <param name="basicCredential">The File System service account must /// have the following permissions: /// Read and execute permission to the UNC path. /// A member of the local Administrators group of the machine where the /// UNC path resides.</param> public PSTFileConnectionOption(string path, BasicCredential basicCredential = default(BasicCredential), PSTFileConnectionAdvancedSettingsOption advancedSettings = default(PSTFileConnectionAdvancedSettingsOption)) { BasicCredential = basicCredential; Path = path; AdvancedSettings = advancedSettings; CustomInit(); }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (BasicCredential != null) { BasicCredential.Validate(); } }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="Microsoft.Rest.ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (BasicCredential != null) { BasicCredential.Validate(); } if (ExchangeServerOption != null) { ExchangeServerOption.Validate(); } }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (Path == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Path"); } if (BasicCredential != null) { BasicCredential.Validate(); } }
/// <summary> /// Initializes a new instance of the ExchangeOnlineConnectionOption /// class. /// </summary> /// <param name="basicCredential">The Exchange Online service account /// must have the following roles: /// ApplicationImpersonation, /// Mail Recipients, /// Mail Recipient Creation, /// Distribution Groups, /// To migrate source public folders, /// make sure a root folder with the same name exists in the /// destination and the service account has the Owner permission level /// to the root folder.</param> public ExchangeOnlineConnectionOption(BasicCredential basicCredential = default(BasicCredential), string connectionId = default(string)) { BasicCredential = basicCredential; ConnectionId = connectionId; CustomInit(); }