예제 #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (UpgradePolicy != null)
     {
         UpgradePolicy.Validate();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public override void Validate()
 {
     base.Validate();
     if (UpgradePolicy != null)
     {
         UpgradePolicy.Validate();
     }
     if (VirtualMachineProfile != null)
     {
         VirtualMachineProfile.Validate();
     }
 }