PostSharpAPI ReferencePost­Sharp.​Patterns.​Diagnostics.​CustomLogging­Properties­Expression­ModelGet­String
Open sandboxFocus

LoggingPropertiesExpressionModel.GetString Method

GetString(String, String)

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

Declaration
public string GetString(string property, string defaultValue = "")
Parameters
Type Name Description
System.String property

Name of a logging property.

System.String defaultValue

The default value to return if the property does not exist.

Returns
Type Description
System.String