CloseActivityOptions(object?)
Initializes a new instance of the CloseActivityOptions struct specifying properties using an arbitrary object (possibly of an anonymous class).
Declaration
public CloseActivityOptions(object? data = null)
Parameters
Type | Name | Description |
---|---|---|
object | data | Optional. Specifies the properties of the WriteMessageOptions, typically specified as an instance of a well-known or anonymous CLR type. The resulting LogEventData will have the default LogEventMetadata, which means that all CLR properties will be exposed as logging properties unless they are annotated with LoggingPropertyOptionsAttribute. |
CloseActivityOptions(in LogEventData)
Initializes a new instance of the CloseActivityOptions struct specifying properties using a LogEventData.
Declaration
public CloseActivityOptions(in LogEventData data)
Parameters
Type | Name | Description |
---|---|---|
LogEventData | data | Optional. Specifies the properties of the WriteMessageOptions. See LogEventData. |