API Reference
Class
WslDistributionStopWriter
Plans and applies WSL distribution termination requests through the native public WSL API.
Inheritance
- Object
- WslDistributionStopWriter
Methods
public static WslDistributionStopResult ApplyPlan(WslDistributionStopPlan plan, Boolean execute) #Returns:
WslDistributionStopResultApplies an existing WSL distribution termination plan.
Parameters
- plan ComputerX.Wsl.WslDistributionStopPlan
- Termination request plan.
- execute System.Boolean
- When false, returns a preview result without invoking the native API.
Returns
Termination request result.
public static WslDistributionStopPlan Plan(String name) #Returns:
WslDistributionStopPlanCreates a non-mutating plan for terminating a WSL distribution.
Parameters
- name System.String
- Distribution name.
Returns
Termination request plan.
public static WslDistributionStopResult Stop(String name, Boolean execute = true) #Returns:
WslDistributionStopResultTerminates a WSL distribution through WslTerminateDistribution.
Parameters
- name System.String
- Distribution name.
- execute System.Boolean = true
- When false, returns a preview result without invoking the native API.
Returns
Termination request result.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object