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.

WarningRecord Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the WarningRecord class. Introduced in Windows PowerShell 3.0.

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

NameDescription
System_CAPS_pubmethodWarningRecord(PSObject)

Initializes a new instance of the WarningRecord class with a PSObject that represents the warning record. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodWarningRecord(String)

Initializes a new instance of the WarningRecord class with the warning message. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodWarningRecord(String, PSObject)

Initializes a new instance of the WarningRecord class with the fully qualified warning identifier and a PSObject that represents the warning record. Introduced in Windows PowerShell 3.0.

System_CAPS_pubmethodWarningRecord(String, String)

Initializes a new instance of the WarningRecord class with the fully qualified warning identifier and the warning message. Introduced in Windows PowerShell 3.0.

Return to top

Community Additions

Show: