### Extension

Use the Extension property of the IIsMimeType object to specify the MIME type of the file name extension.

###### Syntax

DirObj.Extension = String

###### Parameters

DirObj
  An IIS Admin Object of type IIsMimeType.
String
  This is the specific file name extension associated with the MIME type specified in the MimeType property.

###### Code Example

    <%
      Dim DirObj
      Dim MimeMapNode
      Dim MimeMapList
      Dim MimeMapEntry
      Set Obj = GetObject("IIS://LH/MimeMap")
      MimeMapList = DirObj.MimeMap
      Redim preserve MimeMapList (Ubound(MimeMapList)+1)
      Set MimeMapEntry = CreateObject ("IIsMimeTyepEntry")
      MimeMapEntry.MimeMap = "Text/Plain"
      Mime.Extension = ".log"
      Set MimeMapList (Ubound(MimeMapList)) = MimeMapEntry
      DirObj.MimeMap = MimeMapList
      DirObj.Setinfo
    %>

###### See Also

MimeType, IIsMimeType

© 1997-2001 Microsoft Corporation. All rights reserved.