Freigeben über


PSDataStreams.Warning Property

Definition

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

public:
 property System::Management::Automation::PSDataCollection<System::Management::Automation::WarningRecord ^> ^ Warning { System::Management::Automation::PSDataCollection<System::Management::Automation::WarningRecord ^> ^ get(); void set(System::Management::Automation::PSDataCollection<System::Management::Automation::WarningRecord ^> ^ value); };
public System.Management.Automation.PSDataCollection<System.Management.Automation.WarningRecord> Warning { get; set; }
member this.Warning : System.Management.Automation.PSDataCollection<System.Management.Automation.WarningRecord> with get, set
Public Property Warning As PSDataCollection(Of WarningRecord)

Property Value

Exceptions

Cannot set to a null value.

Powershell instance cannot be changed in its current state.

Object is disposed.

Applies to