InformationRecord(Object, String) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.).