TracingRule(String, String, String, ActivitySourceScopes, Boolean) Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the TracingRule class.
public:
TracingRule(System::String ^ sourceName, System::String ^ operationName, System::String ^ listenerName, Microsoft::Extensions::Diagnostics::Tracing::ActivitySourceScopes scopes, bool enable);
public TracingRule(string? sourceName, string? operationName, string? listenerName, Microsoft.Extensions.Diagnostics.Tracing.ActivitySourceScopes scopes, bool enable);
new Microsoft.Extensions.Diagnostics.Tracing.TracingRule : string * string * string * Microsoft.Extensions.Diagnostics.Tracing.ActivitySourceScopes * bool -> Microsoft.Extensions.Diagnostics.Tracing.TracingRule
Public Sub New (sourceName As String, operationName As String, listenerName As String, scopes As ActivitySourceScopes, enable As Boolean)
Parameters
- sourceName
- String
The Name, prefix, or pattern with a single * wildcard. A null or empty value matches all activity sources.
- operationName
- String
The OperationName, exact match. A null or empty value matches all activities within the matching sources.
- scopes
- ActivitySourceScopes
A bitwise combination of the enumeration values that specifies the scopes to consider.
- enable
- Boolean
true to enable matched activities for this listener; otherwise, false.
Exceptions
sourceName contains more than one * wildcard.
scopes is None.