Share via


LoggerRedactionOptions.ApplyDiscriminator Property

Definition

Gets or sets a value indicating whether a discriminator value is applied to each redacted value.

public:
 property bool ApplyDiscriminator { bool get(); void set(bool value); };
public bool ApplyDiscriminator { get; set; }
member this.ApplyDiscriminator : bool with get, set
Public Property ApplyDiscriminator As Boolean

Property Value

Defaults to true.

Remarks

The discriminator is used to constrain the ability to correlate data between pieces of state. When this property is true, the tag name of each value is included as part of the redacted text, generally making it impossible to correlate data between tags of different names.

Applies to