語言

HttpRequest.ContentType 屬性

定義

取得或設定 HTTP 操作主體的內容型態。

public AdaptiveExpressions.Properties.StringExpression ContentType { get; set; }
member this.ContentType : AdaptiveExpressions.Properties.StringExpression with get, set
Public Property ContentType As StringExpression

屬性值

內容類型如「application/json」或「text/plain」。 預設是「application/json」。

適用於