コード例 #1
0
 public override void ExecuteCmdlet()
 {
     if (!string.IsNullOrEmpty(Location) && !SMClient.GetAvailableRegions().Contains(Location, StringComparer.OrdinalIgnoreCase))
     {
         throw new Exception(Resources.SchedulerInvalidLocation);
     }
     else
     {
         WriteObject(SMClient.GetJobCollection(region: Location, jobCollection: JobCollectionName), true);
     }
 }
 public override void ExecuteCmdlet()
 {
     WriteObject(SMClient.GetJobCollection(region: Location, jobCollection: JobCollectionName), true);
 }