A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://learn.microsoft.com/en-us/dotnet/api/system.management.automation.switchparameter below:

SwitchParameter Struct (System.Management.Automation) | Microsoft Learn

SwitchParameter Struct Definition

Type used to define a parameter on a cmdlet script of function that can only be used as a switch.

public value class SwitchParameter
public struct SwitchParameter
[System.Runtime.CompilerServices.IsReadOnly]
public readonly struct SwitchParameter
type SwitchParameter = struct
[<System.Runtime.CompilerServices.IsReadOnly>]
type SwitchParameter = struct
Public Structure SwitchParameter
Inheritance
Attributes
Constructors Properties IsPresent

Returns true if the parameter was specified on the command line, false otherwise.

Present

Static method that returns a instance of SwitchParameter that indicates that it is present.

Methods Equals(Object)

Compare this switch parameter to another object.

GetHashCode()

Returns the hash code for this switch parameter.

ToBool()

Explicit method to convert a SwitchParameter to a boolean value.

ToString()

Returns the string representation for this object.

Operators

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4