PostSharp 6.10 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics Namespace / Logging­Backend­Options Class / Logging­Backend­Options Properties / Logging­Backend­Options.​Context­Max­Length Property

LoggingBackendOptions.ContextMaxLength Property

Max length of the Description property.

Namespace:  PostSharp.Patterns.Diagnostics
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: (
public int ContextMaxLength { get; set; }

Property Value

Type: Int32

This property determines the size of the buffer allocated to build the Description property. If the real length exceeds the value of ContextMaxLength, no exception is thrown, and the excess content is ignored.

See Also