MIME whitelist user defined callback type.
delegate DocumentMimeTypeStatus UserGetDocumentStatusHandler(
Uri uri,
LoadDocumentOptions options,
DocumentMimeTypeSource source,
string mimeType
)
Delegate Function UserGetDocumentStatusHandler(
ByVal uri As Uri,
ByVal options As LoadDocumentOptions,
ByVal source As DocumentMimeTypeSource,
ByVal mimeType As String
) As DocumentMimeTypeStatus
public:
delegate DocumentMimeTypeStatus UserGetDocumentStatusHandler(
Uri^ uri,
LoadDocumentOptions^ options,
DocumentMimeTypeSource^ source,
String^ mimeType
)
uri
The URI to the document being loaded.
options
The object passed by the user.
source
The source of this callback invocation.
mimeType
The MIME type being checked
Call GetDocumentStatus to continue with the current settings or any other values to manually allow/deny the MIME type.
By default, Entries does not contain any entries and the value of DefaultStatus is Unspecified. Therefore, DocumentFactory is able to load any data containing an image or document format supported by LEADTOOLS.
Refer to DocumentMimeTypes to customize this behavior.
For an example, refer to DocumentMimeTypes.
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