public override void ExecuteCmdlet() { if (this.IsParameterBound(c => c.WorkspaceObject)) { this.WorkspaceName = this.WorkspaceObject.Name; } if (this.IsParameterBound(c => c.InputObject)) { this.WorkspaceName = this.InputObject.WorkspaceName; this.Name = this.InputObject.Name; } ConfirmAction( Force.IsPresent, string.Format(Resources.RemoveSynapseManagedPrivateEndpoint, this.Name), string.Format(Resources.RemovingSynapseManagedPrivateEndpoint, this.Name, this.WorkspaceName), Name, () => { SynapseManagedPrivateEndpointsClient.DeleteManagedPrivateEndpoint(this.Name, this.VirtualNetworkName); if (PassThru) { WriteObject(true); } }); }