2025-04-27 07:49:33 -04:00

119 lines
4.1 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252">
<TITLE>IIsMimeType</TITLE>
<SCRIPT LANGUAGE="JavaScript">
<!--
TempString = navigator.appVersion
if (navigator.appName == "Microsoft Internet Explorer"){
// Check to see if browser is Microsoft
if (TempString.indexOf ("4.") >= 0){
// Check to see if it is IE 4
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else {
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
}
}
else if (navigator.appName == "Netscape") {
// Check to see if browser is Netscape
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/coua.css">');
}
else
document.writeln('<link rel="stylesheet" type="text/css" href="/iishelp/common/cocss.css">');
//-->
</script>
<SCRIPT LANGUAGE="VBScript">
<!--
Sub Window_OnLoad()
Dim frmContents
On Error Resume Next
If Not Parent Is Nothing Then
Set frmContents = Parent.Contents
If Not frmContents Is Nothing Then
frmContents.Window.TOCSynch_Click
End If
End If
End Sub
//--></SCRIPT><META NAME="DESCRIPTION" CONTENT="Internet Information Services reference information">
<META HTTP-EQUIV="PICS-Label" CONTENT='(PICS-1.1 "<http://www.rsac.org/ratingsv01.html>" l comment "RSACi North America Server" by "inet@microsoft.com <mailto:inet@microsoft.com>" r (n 0 s 0 v 0 l 0))'>
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META NAME="MS-IT-LOC" Content="Internet Information Services">
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H2><A NAME="_k2_iismimetype"></A><SUP></SUP>IIsMimeType</H2>
<P>The <A HREF="/iishelp/iis/htm/asp/apro5gs0.htm"><B>MimeMap</B></A> property contains an array of <B>IISMimeType</B> objects. To add to the array, create a new <B>IISMimeType</B> object, set its <B>MimeType</B>, create the <B>Extension</B>, add the element to the <B>MimeMap </B>array, and set it in ADSI.</P>
<P>The <B>IIsMimeType </B>object is a custom ADSI Automation object.</P>
<H6>Syntax</H6>
<P><I>varMimeMap </I><B>= </B><I>object</I>.<B>MimeMap</B></P>
<P>Set <I>objMimeType</I> = <I>aMimeMap</I>(0)</P>
<P>&nbsp;</P>
<H6>Parts</H6>
<DL>
<DT><I>aMimeMap</I></DT>
<DD>A variable that receives the list of <B>IIsMimeType</B> objects.<BR>
</DD>
<DT><I>object</I></DT>
<DD>A variable that supports the <B>MimeType</B> property, usually as a result of a previous <B>GetObject</B> operation.<BR>
</DD>
<DT><I>objMimeType</I></DT>
<DD>An object variable that receives the <B>IIsMimeType</B> object.</DD>
</DL>
<H6>Can Contain </H6>
<P>This object cannot contain any other objects.</P>
<H6>Properties</H6>
<P><A HREF="/iishelp/iis/htm/asp/adsi57hv.htm">ADSI Object Properties</A></P>
<H6>Metabase Properties</H6>
<TABLE border=0 cellpadding=5 cols=2 frame=box rules=cols>
<TR VALIGN="top">
<TD width=50%><A HREF="/iishelp/iis/htm/asp/apro5gs0.htm"><B>MimeMap</B></A></TD>
<TD width=50%>This property provides a list of the file name extensions for Multipurpose Internet Mail Extensions (MIME) mappings. <B>MimeMap</B> is an array of <B>IISMimeType</B> objects.</TD>
</TR>
</TABLE><BR>
<H6>Object Properties</H6>
<TABLE border=0 cellpadding=5 cols=2 frame=box rules=all>
<TR VALIGN="top">
<TD width=50%><A HREF="/iishelp/iis/htm/asp/aore19lx.htm"><B>MimeType</B></A></TD>
<TD width=50%>This property can be used to GET and PUT the <B>MimeType</B> for the object.</TD>
</TR>
<TR VALIGN="top">
<TD width=50%><A HREF="/iishelp/iis/htm/asp/aore4mum.htm"><B>Extension</B></A></TD>
<TD width=50%>This property can be used to GET and PUT the file name extension assigned to the object.</TD>
</TR>
</TABLE><BR>
<H6>See Also</H6>
<P><A HREF="/iishelp/iis/htm/asp/aore8m5s.htm"><B>IIsMimeMap</B></A>, <A HREF="/iishelp/iis/htm/asp/apro5gs0.htm"><B>MimeMap</B></A></P>
<hr class="iis" size="1">
<p align="center"><em><a href="../../../common/colegal.htm">&copy; 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p>
</BODY>
</HTML>