PostSharp 6.9 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / Logging­Property­Options Structure / Logging­Property­Options Methods / Logging­Property­Options.​With­Formatter Method

LoggingPropertyOptions.WithFormatter Method

Returns a copy of the current but with a different value of the Formatter property.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.9.7.0 (6.9.7.0)
Syntax
C#
public LoggingPropertyOptions WithFormatter(
	IFormatter formatter
)

Parameters

formatter
Type: PostSharp.Patterns.Formatters.IFormatter
The formatter to be used to render the property value.

Return Value

Type: LoggingPropertyOptions
See Also