Microsoft DirectX 8.0 (Visual Basic)

DirectXFileBinary.GetMimeType

Retrieves the Multipurpose Internet Mail Extensions (MIME) type for the binary data.

object.GetMimeType() As String

Parts

object
Object expression that resolves to a DirectXFileBinary object.

Return Values

Returns a String value set to the file's MIME type.

Error Codes

If the method fails, an error is raised and Err.Number may be set to DXFILEERR_BADVALUE.

For information on trapping errors, see the Microsoft® Visual Basic® Error Handling topic.

Remarks

When there is no MIME type specified in a Microsoft® DirectX® file for a binary object, the function will return an empty string.