PostSharp / / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom / Logging­Properties­Expression­Model / Get­String
Open sandbox

Method GetString

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
String property

Name of a logging property.

String defaultValue

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

Returns
Type Description
String