Share via


LoggingOptions.RouteParameterDataClasses Property

Definition

Gets or sets a map between HTTP path parameters and their data classification.

[System.ComponentModel.DataAnnotations.Required]
public System.Collections.Generic.IDictionary<string,Microsoft.Extensions.Compliance.Classification.DataClassification> RouteParameterDataClasses { get; set; }
[<System.ComponentModel.DataAnnotations.Required>]
member this.RouteParameterDataClasses : System.Collections.Generic.IDictionary<string, Microsoft.Extensions.Compliance.Classification.DataClassification> with get, set
Public Property RouteParameterDataClasses As IDictionary(Of String, DataClassification)

Property Value

The default value is an empty dictionary.

Attributes

Remarks

If a parameter within a controller's action is not annotated with a data classification attribute and it's not found in this map, it will be redacted as if it was Unknown. If you don't want a parameter to be redacted, mark it as None.

Applies to