SetPipelineActivePeriod() 공개 메소드

public SetPipelineActivePeriod ( string resourceGroupName, string dataFactoryName, string pipelineName, System.DateTime startTime, System.DateTime endTime, bool autoResolve, bool forceRecalc ) : void
resourceGroupName string
dataFactoryName string
pipelineName string
startTime System.DateTime
endTime System.DateTime
autoResolve bool
forceRecalc bool
리턴 void
        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;
            }

            DateTime startTime = StartDateTime;
            DateTime endTime   = EndDateTime;

            ConfirmAction(
                string.Format(
                    CultureInfo.InvariantCulture,
                    "Set pipeline '{0}' active period from '{1}' to '{2}'",
                    PipelineName,
                    startTime,
                    endTime),
                PipelineName,
                () =>
                DataFactoryClient.SetPipelineActivePeriod(
                    ResourceGroupName, DataFactoryName, PipelineName, startTime, endTime, AutoResolve.ToBool(), ForceRecalculate.ToBool()));

            WriteObject(true);
        }