WarningRecord Constructors

Definition

Overloads

WarningRecord(PSObject)
WarningRecord(String)
WarningRecord(String, PSObject)

Constructor for Fully qualified warning Id.

WarningRecord(String, String)

Constructor for Fully qualified warning Id.

WarningRecord(PSObject)

public:
 WarningRecord(System::Management::Automation::PSObject ^ record);
public WarningRecord (System.Management.Automation.PSObject record);
new System.Management.Automation.WarningRecord : System.Management.Automation.PSObject -> System.Management.Automation.WarningRecord
Public Sub New (record As PSObject)

Parameters

record
PSObject

Applies to

WarningRecord(String)

public:
 WarningRecord(System::String ^ message);
public:
 WarningRecord(Platform::String ^ message);
 WarningRecord(std::wstring const & message);
public WarningRecord (string message);
new System.Management.Automation.WarningRecord : string -> System.Management.Automation.WarningRecord
Public Sub New (message As String)

Parameters

message
String

Applies to

WarningRecord(String, PSObject)

Constructor for Fully qualified warning Id.

public:
 WarningRecord(System::String ^ fullyQualifiedWarningId, System::Management::Automation::PSObject ^ record);
public WarningRecord (string fullyQualifiedWarningId, System.Management.Automation.PSObject record);
new System.Management.Automation.WarningRecord : string * System.Management.Automation.PSObject -> System.Management.Automation.WarningRecord
Public Sub New (fullyQualifiedWarningId As String, record As PSObject)

Parameters

fullyQualifiedWarningId
String

Fully qualified warning Id.

record
PSObject

Warning serialized object.

Applies to

WarningRecord(String, String)

Constructor for Fully qualified warning Id.

public:
 WarningRecord(System::String ^ fullyQualifiedWarningId, System::String ^ message);
public:
 WarningRecord(Platform::String ^ fullyQualifiedWarningId, Platform::String ^ message);
 WarningRecord(std::wstring const & fullyQualifiedWarningId, std::wstring const & message);
public WarningRecord (string fullyQualifiedWarningId, string message);
new System.Management.Automation.WarningRecord : string * string -> System.Management.Automation.WarningRecord
Public Sub New (fullyQualifiedWarningId As String, message As String)

Parameters

fullyQualifiedWarningId
String

Fully qualified warning Id.

message
String

Warning message.

Applies to