Sdílet prostřednictvím


URLConnection.ContentType Property

Definition

Returns the value of the content-type header field.

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

Property Value

the content type of the resource that the URL references, or null if not known.

Attributes

Remarks

Returns the value of the content-type header field.

Java documentation for java.net.URLConnection.getContentType().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to