Show-YesNoCancel

Last updated last month

Shows Yes/No/Cancel dialog to the user and returns user choice.

Syntax

Show-YesNoCancel [-Title <String>] [-Width <Int32>] [-Height <Int32>]

Detailed Description

Shows Yes/No/Cancel dialog to the user and returns user choice as a string value.

Depending on the user response one of the 2 strings is returned:

  • yes

  • no

  • cancel

© 2010-2017 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

Parameters

-Title <String>

Question to ask the user in the dialog

Aliases

Required?

false

Position?

named

Default Value

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Width <Int32>

Width of the dialog.

Aliases

Required?

false

Position?

named

Default Value

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Height <Int32>

Height of the dialog.

Aliases

Required?

false

Position?

named

Default Value

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

Outputs

The output type is the type of the objects that the cmdlet emits.

  • System.String

Notes

Help Author: Adam Najmanowicz, Michael West

Examples

EXAMPLE

PS master:\> Show-YesNoCancel "Should we delete those 2 items?"
cancel

Related Topics