IAcceptsMetadata.ContentTypes Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a list of the allowed request content types.
If the incoming request contains a Content-Type
and the content type is not
one of these values, the request will be rejected with a 415 response. If the
incoming request does not contain a Content-Type
header, the content type
check will be bypassed.
public System.Collections.Generic.IReadOnlyList<string> ContentTypes { get; }
member this.ContentTypes : System.Collections.Generic.IReadOnlyList<string>
Public ReadOnly Property ContentTypes As IReadOnlyList(Of String)