Export (0) Print
Expand All

SwitchParameter.IsPresent Property

Gets a value that indicates whether the parameter was specified on the command line.

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

Dim instance As SwitchParameter
Dim value As Boolean

value = instance.IsPresent

public bool IsPresent { get; }
/** @property */
public boolean get_IsPresent ()

public function get IsPresent () : boolean

Property Value

A Boolean: true if the parameter was specified on the command line; otherwise, false.

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

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
© 2014 Microsoft