PSModuleInfo.OnRemove Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Optional script that is going to be called just before Remove-Module cmdlet removes the module.
public:
property System::Management::Automation::ScriptBlock ^ OnRemove { System::Management::Automation::ScriptBlock ^ get(); void set(System::Management::Automation::ScriptBlock ^ value); };
public System.Management.Automation.ScriptBlock OnRemove { get; set; }
member this.OnRemove : System.Management.Automation.ScriptBlock with get, set
Public Property OnRemove As ScriptBlock