コード例 #1
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();
 }
コード例 #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();
 }