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.net.URLConnection.getContentType()Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于