Indicates whether this object has obtained the content type of the opened URL.
public bool HasContentType { get; }
HasContentType # get (HttpClientLeadStream)
true if this object has obtained the content type of the opened URL; otherwise, false. Default value is false.
When Open is called, the object will try to read content type (media type) of the data in the URL from the HTTP headers. If the value is available, it will be set in HttpClientLeadStream.ContentType and the value of HttpClientLeadStream.HasContentType will be set to true. If the value is not available, then HttpClientLeadStream.ContentType will be null and HttpClientLeadStream.HasContentType will be set to false. For instance, if the data in the URL is pointing to a JPEG file (such as http://example.org/file.jpg), then ContentType
will be "image/jpeg".
A reference to Leadtools.Async.dll is required to use this functionality.
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document