/// <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();
 }