Skip to content

Commit a7d7826

Browse files
authored
Update where to Where-Object in examples
Fix code format
1 parent 67bf087 commit a7d7826

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

reference/5.1/Microsoft.PowerShell.Utility/Set-PSBreakpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Action :
160160
161161
function CheckLog {
162162
>> Get-EventLog -Log Application |
163-
>> where {($_.Source -like "TestApp") -and ($_.Message -like "*failed*")}
163+
>> Where-Object {($_.Source -like "TestApp") -and ($_.Message -like "*failed*")}
164164
>>}
165165
>>
166166
PS> Checklog

reference/7.4/Microsoft.PowerShell.Utility/Set-PSBreakpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Action :
161161
162162
function CheckLog {
163163
>> Get-EventLog -Log Application |
164-
>> where {($_.Source -like "TestApp") -and ($_.Message -like "*failed*")}
164+
>> Where-Object {($_.Source -like "TestApp") -and ($_.Message -like "*failed*")}
165165
>>}
166166
>>
167167
PS> Checklog

reference/7.5/Microsoft.PowerShell.Utility/Set-PSBreakpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Action :
161161
162162
function CheckLog {
163163
>> Get-EventLog -Log Application |
164-
>> where {($_.Source -like "TestApp") -and ($_.Message -like "*failed*")}
164+
>> Where-Object {($_.Source -like "TestApp") -and ($_.Message -like "*failed*")}
165165
>>}
166166
>>
167167
PS> CheckLog

reference/7.6/Microsoft.PowerShell.Utility/Set-PSBreakpoint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ Action :
161161
162162
function CheckLog {
163163
>> Get-EventLog -Log Application |
164-
>> where {($_.Source -like "TestApp") -and ($_.Message -like "*failed*")}
164+
>> Where-Object {($_.Source -like "TestApp") -and ($_.Message -like "*failed*")}
165165
>>}
166166
>>
167167
PS> CheckLog

0 commit comments

Comments
 (0)