Skip to main content

Errormessage

Properties

NameTypeDescriptionNotes
LocaleStringLocale is the current Locale[optional]
LocaleOriginStringLocaleOrigin holds possible values of how the locale was selected[optional]
TextStringText is the actual text of the error message[optional]

Examples

  • Prepare the resource
$Errormessage = Initialize-Errormessage  -Locale en-US `
-LocaleOrigin DEFAULT `
-Text This is an error
  • Convert the resource to JSON
$Errormessage | ConvertTo-JSON

[Back to top]