IAcceptsMetadata.ContentTypes 属性

定义

获取允许的请求内容类型的列表。 如果传入请求没有 Content-Type 包含这些值之一的 ,则请求将被拒绝并返回 415 响应。

public System.Collections.Generic.IReadOnlyList<string> ContentTypes { get; }
member this.ContentTypes : System.Collections.Generic.IReadOnlyList<string>
Public ReadOnly Property ContentTypes As IReadOnlyList(Of String)

属性值

适用于