ServiceTraceWriter.SetExcludedCategoryPrefixes Method

Definition

Updates the set of category prefixes to exclude from user logging. Each trace has a "Category" indicating the origin (i.e. the "source") of the trace. An application may use the LogCategories as suggested categories, or simply leave out the category which will use the value provided by the CallerMemberNameAttribute. A log with a category that matches any of the excluded prefixes will not get logged.

public virtual void SetExcludedCategoryPrefixes (System.Collections.Generic.IEnumerable<string> exclude);
abstract member SetExcludedCategoryPrefixes : seq<string> -> unit
override this.SetExcludedCategoryPrefixes : seq<string> -> unit
Public Overridable Sub SetExcludedCategoryPrefixes (exclude As IEnumerable(Of String))

Parameters

exclude
IEnumerable<String>

A set of category prefixes to exclude.

Applies to