ProcessOutput Class

Represents a single line of process output with its stream type and UTC timestamp.

public sealed class ProcessOutput

Properties

NameDescription
TextGets the text content of this output line.
TimestampUtcGets the UTC timestamp at which this output line was captured.
TypeGets the type of output stream this line came from.

Gets the text content of this output line.

public string Text { get; }

Property value

string

TimestampUtc

ProcessOutput.cs

Gets the UTC timestamp at which this output line was captured.

public DateTime TimestampUtc { get; }

Property value

DateTime

Gets the type of output stream this line came from.

public ProcessOutputType Type { get; }

Property value

ProcessOutputType

Methods

NameDescription
Deconstruct(ProcessOutputType, string)Deconstructs the output into its type and text components.
Deconstruct(ProcessOutputType, string, DateTime)Deconstructs the output into its type, text, and UTC timestamp components.
ToString()Returns a string that represents the current object.

Deconstruct overloads

Deconstruct(ProcessOutputType, string)

ProcessOutput.cs

Deconstructs the output into its type and text components.

public void Deconstruct(out ProcessOutputType type, out string text)
Parameters
type ProcessOutputType
text string

Deconstruct(ProcessOutputType, string, DateTime)

ProcessOutput.cs

Deconstructs the output into its type, text, and UTC timestamp components.

public void Deconstruct(out ProcessOutputType type, out string text, out DateTime timestampUtc)
Parameters
type ProcessOutputType
text string
timestampUtc DateTime

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.