共用方式為


IAcceptsMetadata.ContentTypes 屬性

定義

取得允許的要求內容類型清單。 如果連入要求包含 Content-Type,且內容類型不是其中一個值,則會以 415 回應拒絕要求。 如果傳入要求不包含 Content-Type 標頭,則會略過內容類型檢查。

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

屬性值

適用於