/// <summary>
 /// Initializes a new instance of the
 /// ServerSecurityAlertPolicyCreateOrUpdateParameters class with
 /// required arguments.
 /// </summary>
 public ServerSecurityAlertPolicyCreateOrUpdateParameters(ServerSecurityAlertPolicyProperties properties)
     : this()
 {
     if (properties == null)
     {
         throw new ArgumentNullException("properties");
     }
     this.Properties = properties;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the
 /// ServerSecurityAlertPolicyCreateOrUpdateParameters class with
 /// required arguments.
 /// </summary>
 public ServerSecurityAlertPolicyCreateOrUpdateParameters(ServerSecurityAlertPolicyProperties properties)
     : this()
 {
     if (properties == null)
     {
         throw new ArgumentNullException("properties");
     }
     this.Properties = properties;
 }
コード例 #3
0
 /// <summary>
 /// Creates and returns a DatabaseSecurityAlertPolicyProperties object that holds the default settings for a server security alert policy
 /// </summary>
 /// <returns>A DatabaseSecurityAlertPolicyProperties object with the default security alert policy settings</returns>
 private static ServerSecurityAlertPolicyProperties GetDefaultServerSecurityAlertProperties()
 {
     var props = new ServerSecurityAlertPolicyProperties
     {
         State = "New",
         DisabledAlerts = "Preview",
         EmailAddresses = string.Empty,
         EmailAccountAdmins = "Enabled"
     };
     return props;
 }