Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions reference/7.2/Microsoft.PowerShell.Utility/Write-Error.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
external help file: Microsoft.PowerShell.Commands.Utility.dll-Help.xml
Locale: en-US
Module Name: Microsoft.PowerShell.Utility
ms.date: 10/14/2020
ms.date: 08/03/2021
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.utility/write-error?view=powershell-7.2&WT.mc_id=ps-gethelp
schema: 2.0.0
title: Write-Error
Expand All @@ -26,15 +26,15 @@ Write-Error [-Message] <String> [-Category <ErrorCategory>] [-ErrorId <String>]
### WithException

```
Write-Error -Exception <Exception> [[-Message] <String>] [-Category <ErrorCategory>] [-ErrorId <String>]
Write-Error [-Exception] <Exception> [[-Message] <String>] [-Category <ErrorCategory>] [-ErrorId <String>]
[-TargetObject <Object>] [-RecommendedAction <String>] [-CategoryActivity <String>] [-CategoryReason <String>]
[-CategoryTargetName <String>] [-CategoryTargetType <String>] [<CommonParameters>]
```

### ErrorRecord

```
Write-Error -ErrorRecord <ErrorRecord> [-RecommendedAction <String>] [-CategoryActivity <String>]
Write-Error [-ErrorRecord] <ErrorRecord> [-RecommendedAction <String>] [-CategoryActivity <String>]
[-CategoryReason <String>] [-CategoryTargetName <String>] [-CategoryTargetType <String>] [<CommonParameters>]
```

Expand Down Expand Up @@ -256,7 +256,7 @@ Parameter Sets: ErrorRecord
Aliases:

Required: True
Position: Named
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand All @@ -275,7 +275,7 @@ Parameter Sets: WithException
Aliases:

Required: True
Position: Named
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Expand Down
4 changes: 2 additions & 2 deletions reference/docs-conceptual/learn/experimental-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ UnderlineOff Property string UnderlineOff {get;}
The base members return strings of ANSI escape sequences mapped to their names. The values are
settable to allow customization.

For more information, see [about_Automatic_Variables](/powershell/module/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md)
For more information, see [about_Automatic_Variables](/powershell/module/Microsoft.PowerShell.Core/About/about_Automatic_Variables)

> [!NOTE]
> For C# developers, you can access `PSStyle` as a singleton. Usage will look like this:
Expand Down Expand Up @@ -173,7 +173,7 @@ enables coloring of specific file types.
- `$PSStyle.FileInfo.Extension` - Use this member to define colors for different file extensions.
The **Extension** member pre-includes extensions for archive and PowerShell files.

For more information, see [about_Automatic_Variables](/powershell/module/Microsoft.PowerShell.Core/About/about_Automatic_Variables.md)
For more information, see [about_Automatic_Variables](/powershell/module/Microsoft.PowerShell.Core/About/about_Automatic_Variables)

> [!NOTE]
> You must have the **PSAnsiRendering** experimental feature enabled to use this feature.
Expand Down