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