Esempio n. 1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (StorageProfile != null)
     {
         StorageProfile.Validate();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (StorageProfile != null)
     {
         StorageProfile.Validate();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (StorageProfile == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "StorageProfile");
     }
     if (StorageProfile != null)
     {
         StorageProfile.Validate();
     }
 }
Esempio n. 4
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (StorageProfile == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "StorageProfile");
     }
     if (StorageProfile != null)
     {
         StorageProfile.Validate();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (StorageProfile != null)
     {
         StorageProfile.Validate();
     }
     if (Resources != null)
     {
         foreach (var element in Resources)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
 }