TracingRule Class
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.
Contains a set of parameters used to determine which activities are enabled for which listeners. An unspecified SourceName matches all activity sources, an unspecified OperationName matches all activities within the matching sources, and an unspecified ListenerName matches all listeners.
public ref class TracingRule
public class TracingRule
type TracingRule = class
Public Class TracingRule
- Inheritance
-
TracingRule
Remarks
The most specific rule that matches a given activity will be used. The priority of parameters is as follows:
- ListenerName, an exact match. See Name.
- SourceName, either an exact match, the longest prefix match, or a wildcard pattern using a single
*. See Name. - OperationName, an exact match. See OperationName.
- Scopes, where a more constrained scope is preferred over
Global | Local.
When multiple rules are equally specific, the rule added last takes precedence.
Constructors
| Name | Description |
|---|---|
| TracingRule(String, String, String, ActivitySourceScopes, Boolean) |
Initializes a new instance of the TracingRule class. |
Properties
| Name | Description |
|---|---|
| Enable |
Gets a value that indicates whether matched activities are enabled for this listener. |
| ListenerName |
Gets the Name, an exact match. |
| OperationName |
Gets the OperationName, an exact match. |
| Scopes |
Gets the ActivitySourceScopes. |
| SourceName |
Gets the Name, either an exact match, the longest prefix match, or a wildcard pattern using a single |
Methods
| Name | Description |
|---|---|
| Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
| GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
| GetType() |
Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString() |
Returns a string that represents the current object. (Inherited from Object) |