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)

屬性值

適用於