Partager via


BehaviorOnNoMatch Enum

Definition

Describes whether to report errors when a given filter doesnt match any objects.

public enum class BehaviorOnNoMatch
public enum class BehaviorOnNoMatch
enum BehaviorOnNoMatch
public enum BehaviorOnNoMatch
type BehaviorOnNoMatch = 
Public Enum BehaviorOnNoMatch
Inheritance
BehaviorOnNoMatch

Fields

Name Value Description
Default 0

Default behavior is to be consistent with the built-in cmdlets:

  • When a wildcard is specified, then no errors are reported (i.e. Get-Process -Name noSuchProcess*)
  • When no wildcard is specified, then errors are reported (i.e. Get-Process -Name noSuchProcess)

Note that the following conventions are adopted:

ReportErrors 1

ReportErrors forces reporting of errors that in other circumstances would be reported if no objects matched the filters.

SilentlyContinue 2

SilentlyContinue suppresses errors that in other circumstances would be reported if no objects matched the filters.

Applies to