←Select platform

UserGetDocumentStatusHandler Delegate

Summary

MIME whitelist user defined callback type.

Syntax
C#
VB
C++
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 
   ) 

Parameters

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

Return Value

Call GetDocumentStatus to continue with the current settings or any other values to manually allow/deny the MIME type.

Remarks

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.

Example

For an example, refer to DocumentMimeTypes.

Requirements
Target Platforms
See Also

Reference

Leadtools.Document Namespace

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.