public ListDataSliceRuns ( Microsoft.Azure.Commands.DataFactories.DataSliceRunFilterOptions filterOptions ) : List |
||
filterOptions | Microsoft.Azure.Commands.DataFactories.DataSliceRunFilterOptions | |
Résultat | List |
public override void ExecuteCmdlet() { if (ParameterSetName == ByFactoryObject) { if (DataFactory == null) { throw new PSArgumentNullException(string.Format(CultureInfo.InvariantCulture, Resources.DataFactoryArgumentInvalid)); } DataFactoryName = DataFactory.DataFactoryName; ResourceGroupName = DataFactory.ResourceGroupName; } DataSliceRunFilterOptions filterOptions = new DataSliceRunFilterOptions() { ResourceGroupName = ResourceGroupName, DataFactoryName = DataFactoryName, DatasetName = this.DatasetName, StartDateTime = StartDateTime }; int totalDataSliceRuns = 0; do { var dataSliceRuns = DataFactoryClient.ListDataSliceRuns(filterOptions); totalDataSliceRuns += dataSliceRuns.Count; WriteObject(dataSliceRuns, true); } while (filterOptions.NextLink.IsNextPageLink()); if (totalDataSliceRuns == 0) { WriteWarning(string.Format(CultureInfo.InvariantCulture, Resources.NoDataSliceFound)); } }
public override void ExecuteCmdlet() { if (ParameterSetName == ByFactoryObject) { if (DataFactory == null) { throw new PSArgumentNullException(string.Format(CultureInfo.InvariantCulture, Resources.DataFactoryArgumentInvalid)); } DataFactoryName = DataFactory.DataFactoryName; ResourceGroupName = DataFactory.ResourceGroupName; } var dataSliceRuns = DataFactoryClient.ListDataSliceRuns( ResourceGroupName, DataFactoryName, TableName, StartDateTime); if (dataSliceRuns == null || dataSliceRuns.Count == 0) { WriteWarning(string.Format( CultureInfo.InvariantCulture, Resources.NoDataSliceFound)); } WriteObject(dataSliceRuns); }