Delen via


InformationRecord Class

Definition

Defines a data structure used to represent informational context destined for the host or user.

public ref class InformationRecord
public class InformationRecord
[System.Runtime.Serialization.DataContract]
public class InformationRecord
type InformationRecord = class
[<System.Runtime.Serialization.DataContract>]
type InformationRecord = class
Public Class InformationRecord
Inheritance
InformationRecord
Derived
Attributes

Remarks

InformationRecords are passed to WriteInformation(Object, String[]), which, according to host or user preference, forwards that information on to the host for rendering to the user.

Constructors

InformationRecord(Object, String)

Initializes a new instance of the InformationRecord class.

Properties

Computer

The computer that generated this informational record.

ManagedThreadId

The managed thread that generated this informational record.

MessageData

The message data for this informational record.

NativeThreadId

The native thread that generated this informational record.

ProcessId

The process that generated this informational record.

Source

The source of this informational record (script path, function name, etc.)

Tags

The tags associated with this informational record (if any)

TimeGenerated

The time this informational record was generated.

User

The user that generated this informational record.

Methods

ToString()

Converts an InformationRecord to a string-based representation.

Applies to

See also