Share via


LoggingOptions.Opcode Property

Definition

Gets or sets the operation code value for an event.

public:
 property LoggingOpcode Opcode { LoggingOpcode get(); void set(LoggingOpcode value); };
LoggingOpcode Opcode();

void Opcode(LoggingOpcode value);
public LoggingOpcode Opcode { get; set; }
var loggingOpcode = loggingOptions.opcode;
loggingOptions.opcode = loggingOpcode;
Public Property Opcode As LoggingOpcode

Property Value

The operation code.

Remarks

This value corresponds to the Event Tracing for Windows (ETW) definition of an opcode. Most events should use the Info opcode.

The LoggingActivity class will generate events with the Opcode set to Start and Stop.

Applies to

See also