MetalamaAPI documentationFlashtrace APIFlashtrace.​RecordsLogging­Properties­Expression­Model
Open sandboxFocus

LoggingPropertiesExpressionModel Class

Type of the t parameters for if and sample expressions in the policy configuration file.

Inheritance
System.Object
LoggingPropertiesExpressionModel
Namespace: Flashtrace.Records
Assembly: Flashtrace.dll
Syntax
public sealed class LoggingPropertiesExpressionModel : ValueType

Properties

Name Description
Item[String]

Returns the value of the logging property with the given name, or null if there is no such logging property.

Methods

Name Description
Contains(String)

Returns true if a logging property with the given name exists.

GetInt32(String, Int32)

Gets the value of a logging property as an Int32, or defaultValue if the property does not exist. Throws an exception if the property exists but can't be converted to Int32 using System.Convert.ToInt32(System.Object).

GetInt64(String, Int64)

Gets the value of a logging property as an Int64, or defaultValue if the property does not exist. Throws an exception if the property exists but can't be converted to Int64 using System.Convert.ToInt64(System.Object).

GetString(String, String)

Gets the value of a logging property as a string, or defaultValue if the property does not exist.