Share via


IIsMimeType (ADSI)

The MimeMap property contains an array of IISMimeType objects. To add to the array, create a new IISMimeType object, set its MimeType, create the Extension, add the element to the MimeMap array, and set it in ADSI.

The IIsMimeType object is a custom ADSI Automation object.

Syntax

varMimeMap = object. MimeMap

Set objMimeType = aMimeMap(0)

Parameters

  • aMimeMap
    A variable that receives the list of IISMimeType objects.

  • object
    A variable that supports the MimeType property, usually as a result of a previous GetObject operation.

  • objMimeType
    An object variable that receives the IISMimeType object.

Can Contain

This object cannot contain any other objects.

Properties

Windows ADSI Object Properties

Metabase Properties

MimeMap

This property provides a list of the file name extensions for Multipurpose Internet Mail Extensions (MIME) mappings. MimeMap is an array of IISMimeType objects.

Object Properties

IIsMimeType.MimeType (ADSI)

This property can be used to GET and PUT the MimeType for the object.

IIsMimeType.Extension (ADSI)

This property can be used to GET and PUT the file name extension assigned to the object.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also