IAcceptsMetadata.ContentTypes Property

Definition

Gets a list of the allowed request content types. If the incoming request does not have a Content-Type with one of these values, the request will be rejected with a 415 response.

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

Property Value

Applies to