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;
}
this.ConfirmAction(
this.Force.IsPresent,
string.Format(
CultureInfo.InvariantCulture,
Resources.HubConfirmationMessage,
this.Name,
this.DataFactoryName),
string.Format(
CultureInfo.InvariantCulture,
Resources.HubRemoving,
this.Name,
this.DataFactoryName),
this.Name,
this.ExecuteDelete);
}