SetSliceStatus() public method

public SetSliceStatus ( string resourceGroupName, string dataFactoryName, string datasetName, string sliceState, string updateType, System.DateTime dataSliceRangeStartTime, System.DateTime dataSliceRangeEndTime ) : void
resourceGroupName string
dataFactoryName string
datasetName string
sliceState string
updateType string
dataSliceRangeStartTime System.DateTime
dataSliceRangeEndTime System.DateTime
return void
示例#1
0
        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;
            }

            DataFactoryClient.SetSliceStatus(
                ResourceGroupName,
                DataFactoryName,
                this.DatasetName,
                Status,
                UpdateType,
                StartDateTime,
                EndDateTime);

            WriteObject(true);
        }