/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public override void Validate() { base.Validate(); if (Sku == null) { throw new ValidationException(ValidationRules.CannotBeNull, "Sku"); } if (Sku != null) { Sku.Validate(); } if (Identity != null) { Identity.Validate(); } if (OptimizedAutoscale != null) { OptimizedAutoscale.Validate(); } if (VirtualNetworkConfiguration != null) { VirtualNetworkConfiguration.Validate(); } if (KeyVaultProperties != null) { KeyVaultProperties.Validate(); } }
/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (Sku != null) { Sku.Validate(); } if (Identity != null) { Identity.Validate(); } if (OptimizedAutoscale != null) { OptimizedAutoscale.Validate(); } if (VirtualNetworkConfiguration != null) { VirtualNetworkConfiguration.Validate(); } if (KeyVaultProperties != null) { KeyVaultProperties.Validate(); } }