Megosztás a következőn keresztül:


IAcceptsMetadata.ContentTypes Property

Definition

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)

Property Value

Applies to