IsPresent Property
Collapse the table of content
Expand the table of content

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

© 2016 Microsoft