LoggingOptions.RouteParameterDataClasses 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置 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标记为 。