2.2.3.8 RemoteStreamOptions

This data type specifies a set of zero or more options of a remote stream.

This data type represents the set of options by encoding them as a set of bit flags within a Signed Int (section 2.2.5.1.11). A given remote stream option is included in the set by setting the corresponding bit, or excluded by clearing the bit. The possible remote stream options and their corresponding values are listed in the following table:

Value

Meaning

0x01

AddInvocationInfoToErrorRecord

Add invocation information to ErrorRecord objects.

0x02

AddInvocationInfoToWarningRecord

Add invocation information to WarningRecord objects.

0x04

AddInvocationInfoToDebugRecord

Add invocation information to DebugRecord objects.

0x08

AddInvocationInfoToVerboseRecord

Add invocation information to VerboseRecord objects.

The Complex Object described in this section SHOULD have the following type names (section 2.2.5.2.3):

  • System.Management.Automation.RemoteStreamOptions

  • System.Enum

  • System.ValueType

  • System.Object

For an example, see section 2.2.2.10.