LoggingOptions.RouteParameterDataClasses 属性

定义

获取或设置 HTTP 路径参数与其数据分类之间的映射。

[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)

属性值

默认值为空字典。

属性

注解

如果控制器操作中的参数未使用数据分类属性进行批注,并且此映射中未找到该参数,则将对其进行编修,就像 Unknown是 一样。 如果不希望编辑参数,请将其 None标记为 。

适用于