Verbose Property
Collapse the table of content
Expand the table of content

PSDataStreams.Verbose Property

 

Updated: April 27, 2016

Applies To: Windows PowerShell

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.

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

public PSDataCollection<VerboseRecord> Verbose { get; set; }

Property Value

Type: System.Management.Automation.PSDataCollection<VerboseRecord>

A PSDataCollection<T> of type VerboseRecord that contains verbose messages of an action.

Exception Condition
InvalidPowerShellStateException

The PowerShell object cannot be changed in its current state.

ObjectDisposedException

The PowerShell object has been disposed.

This property can be set to null.

Cmdlets that are run by the PowerShell object write verbose messages using the Cmdlet.WriteVerbose method.

Provider cmdlets that are run by the PowerShell object write verbose messages using the CmdletProvider.WriteVerbose method.

Return to top

Community Additions

ADD
Show:
© 2016 Microsoft