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
- namestring
- The name of the property. 
- valueLogEventPropertyValue
- The value of the property. 
Exceptions
- ArgumentNullException
- When - nameis- null
- ArgumentException
- When - nameis empty or only contains whitespace
- ArgumentNullException
- When - valueis- null
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
- namestring
- The name to check.