Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

PSDataStreams Class

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Provides access to the data streams of a PowerShell object. These data streams include the debug, error, progress, verbose, and warning data streams, but do not include the output data stream. This class cannot be inherited. This class is introduced in Windows PowerShell 2.0.

Namespace:   System.Management.Automation
Assembly:  System.Management.Automation (in System.Management.Automation.dll)

System.Object
  System.Management.Automation.PSDataStreams

Public NotInheritable Class PSDataStreams

NameDescription
System_CAPS_pubpropertyDebug

Gets or sets the debug data stream for the PowerShell object. The command invoked by the PowerShell object can optionally write information to this stream when attempting to troubleshoot an action. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyError

Gets or sets the error data stream for the PowerShell object. The command invoked by the PowerShell object writes information to this stream whenever a nonterminating error occurs. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyInformation

Gets or sets the information buffer. Powershell invocation writes the warning data into this buffer. Can be null.

System_CAPS_pubpropertyProgress

Gets or sets the progress data stream for the PowerShell object. The command invoked by the PowerShell object can optionally write status information to this stream while performing an action. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyVerbose

Gets or sets the verbose data stream for the PowerShell object. The command invoked by the PowerShell object can optionally write verbose information to this stream while performing an action. This property is introduced in Windows PowerShell 2.0.

System_CAPS_pubpropertyWarning

Gets or sets the warning data stream for the PowerShell object. The command invoked by the PowerShell object can optionally write warning messages to this stream while performing an action. This property is introduced in Windows PowerShell 2.0.

NameDescription
System_CAPS_pubmethodClearStreams()

Removes all items from the data streams of the PowerShell object. This method is introduced in Windows PowerShell 2.0.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

Cmdlets that are run by the PowerShell object write information to these data streams using the following "write" methods.

Provider cmdlets that are run by the PowerShell object write information to these data streams using the following "write" methods.

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: