Was this page helpful?

MatchBestContentType Method

    MatchBestContentType(MimeType[] have, MimeType[] accept)

    public static MimeType MatchBestContentType(MimeType[] have, MimeType[] accept);
    Get the best matching Mimetype given a list of mime-type options and accepted mime-types.

    Parameters

    Name Type Description
    have MimeType[] Array of possible mime-types.
    accept MimeType[] Array of mime-types accepted.

    Returns

    Type: MimeType
    Best match mime-type instance.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by