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