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()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于