PostSharp 5.0 / / Post­Sharp Documentation / API Reference / Post­Sharp.​Patterns.​Diagnostics.​Contexts Namespace / Logging­Context Class / Logging­Context Properties / Logging­Context.​Id Property

LoggingContext.Id Property

Gets or set the identifier of the current context. The value can be 0 when no identifier has been generated.

Namespace:  PostSharp.Patterns.Diagnostics.Contexts
Assembly:  PostSharp.Patterns.Diagnostics (in PostSharp.Patterns.Diagnostics.dll) Version: (
public long Id { get; protected set; }

Property Value

Type: Int64
See Also