URLConnection.ContentType 屬性

定義

回傳標頭欄位的 content-type 值。

public virtual string? ContentType { [Android.Runtime.Register("getContentType", "()Ljava/lang/String;", "GetGetContentTypeHandler")] get; }
[<get: Android.Runtime.Register("getContentType", "()Ljava/lang/String;", "GetGetContentTypeHandler")>]
member this.ContentType : string

屬性值

URL 所參考的資源內容類型,或 null 若未知。

屬性

備註

回傳標頭欄位的 content-type 值。

Java 文件 java.net.URLConnection.getContentType()

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於