/// <summary>
 /// BeginProcessing method.
 /// </summary>
 protected override void BeginProcessing()
 {
     if (this.HasParameter("AccountExpires") && AccountNeverExpires.IsPresent)
     {
         InvalidParametersException ex = new InvalidParametersException("AccountExpires", "AccountNeverExpires");
         ThrowTerminatingError(ex.MakeErrorRecord());
     }
     sam = new Sam();
 }
Пример #2
0
 /// <summary>
 /// BeginProcessing method.
 /// </summary>
 protected override void BeginProcessing()
 {
     if (this.HasParameter("AccountExpires") && AccountNeverExpires.IsPresent)
     {
         InvalidParametersException ex = new InvalidParametersException("AccountExpires", "AccountNeverExpires");
         ThrowTerminatingError(ex.MakeErrorRecord());
     }
     sam = new Sam();
 }