PostSharp 6.8 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Custom Namespace / Log­Event­Data Structure / Log­Event­Data Methods / Log­Event­Data.​With­Additional­Property(T) Method

LogEventData.WithAdditionalProperty<T> Method

Returns a LogEventData that augments the current one with an additional property, but does not change the expression model.

Namespace:  PostSharp.Patterns.Diagnostics.Custom
Assembly:  PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 6.8.6.0 (6.8.6.0)
Syntax
C#
public LogEventData WithAdditionalProperty<T>(
	string propertyName,
	T propertyValue,
	 in LoggingPropertyOptions options = null
)

Parameters

propertyName
Type: System.String
propertyValue
Type: T
options (Optional)
Type: PostSharp.Patterns.Diagnostics.Custom.LoggingPropertyOptions

Type Parameters

T

Return Value

Type: LogEventData
See Also