Condividi tramite


InformationRecord(Object, String) Constructor

Definition

Initializes a new instance of the InformationRecord class.

public:
 InformationRecord(System::Object ^ messageData, System::String ^ source);
public:
 InformationRecord(Platform::Object ^ messageData, Platform::String ^ source);
 InformationRecord(winrt::Windows::Foundation::IInspectable const & messageData, std::wstring const & source);
public InformationRecord (object messageData, string source);
new System.Management.Automation.InformationRecord : obj * string -> System.Management.Automation.InformationRecord
Public Sub New (messageData As Object, source As String)

Parameters

messageData
Object

The object to be transmitted to the host.

source
String

The source of the message (i.e.: script path, function name, etc.).

Applies to