Share via


Cmdlet.WriteVerbose(String) Method

Definition

Display verbose information.

public:
 void WriteVerbose(System::String ^ text);
public:
 void WriteVerbose(Platform::String ^ text);
void WriteVerbose(std::wstring const & text);
public void WriteVerbose (string text);
member this.WriteVerbose : string -> unit
Public Sub WriteVerbose (text As String)

Parameters

text
String

Verbose output.

Exceptions

The pipeline has already been terminated, or was terminated during the execution of this method. The Cmdlet should generally just allow PipelineStoppedException to percolate up to the caller of ProcessRecord etc.

Not permitted at this time or from this thread. WriteVerbose may only be called during a call to this Cmdlets's implementation of ProcessRecord, BeginProcessing or EndProcessing, and only from that thread.

Remarks

Use WriteVerbose to display more detailed information about the activity of your Cmdlet. By default, verbose output will not be displayed, although this can be configured with the VerbosePreference shell variable or the -Verbose and -Debug command-line options.

Applies to

See also