Class LogEventProperty
A property associated with a LogEvent.
public class LogEventProperty
- Inheritance
-
LogEventProperty
- Inherited Members
Constructors
LogEventProperty(string, LogEventPropertyValue)
Construct a LogEventProperty with the specified name and value.
public LogEventProperty(string name, LogEventPropertyValue value)
Parameters
name
stringThe name of the property.
value
LogEventPropertyValueThe value of the property.
Exceptions
- ArgumentNullException
When
name
isnull
- ArgumentException
When
name
is empty or only contains whitespace- ArgumentNullException
When
value
isnull
Properties
Name
The name of the property.
public string Name { get; }
Property Value
Value
The value of the property.
public LogEventPropertyValue Value { get; }
Property Value
Methods
IsValidName(string?)
Test name
to determine if it is a valid property name.
public static bool IsValidName(string? name)
Parameters
name
stringThe name to check.