SwitchParameter.ToBool Method ()

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Converts the current SwitchParameter object to a Boolean object.

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

public bool ToBool()

Return Value

Type: System.Boolean

A Boolean object that represents the current SwitchParameter object.

Return to top

Community Additions

ADD
Show: