AutomationNull Class

Indicates a void return result.

Namespace: System.Management.Automation.Internal
Assembly: System.Management.Automation (in System.Management.Automation.dll)

public static class AutomationNull
public final class AutomationNull
public final class AutomationNull

AutomationNull is a singleton class that is sealed to prevent subclassing.

Any operation that returns no actual value should return AutomationNull.Value.

Any component that evaluates a Windows PowerShell expression should be prepared to deal with receiving and discarding this result. When received in an evaluation where a value is required, it should be replaced with null.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


Target Platforms