<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <HTML> <HEAD> <META HTTP-EQUIV="Content-Type" Content="text/html; charset=Windows-1252"> <TITLE>ADSI vs. Base Object Data types</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_adsi_vs._base_object_data_types"></A><SUP></SUP>ADSI vs. Base Object Data Types</H2> <P>The ADSI property data types can be used at the scripting level, whereas the IIS Admin Base Object data types are used only when writing code that uses the IIS Admin Base Object. The difference stems from the fact that scripting languages such as Microsoft<sup>®</sup> JScript<sup>®</sup> and Visual Basic<sup>®</sup> Scripting Edition (VBScript) have dissimilar data type implementations when compared to languages such as C and C++.</P> <P>Use the following table as a reference for ADSI data types, to find the corresponding data type for the IIS Admin Base Object.</P> <TABLE border=0 cellpadding=5 cols=2 frame=box rules=all> <TR VALIGN="top"> <TD class=blue width=50%><B>ADSI Data Type</B></TD> <TD class=blue width=50%><B>Base Object Data Type</B></TD> </TR> <TR VALIGN="top"> <TD width=50%>Long, Boolean, Integer</TD> <TD width=50%>DWORD_METADATA</TD> </TR> <TR VALIGN="top"> <TD width=50%>String</TD> <TD width=50%>STRING_METADATA</TD> </TR> <TR VALIGN="top"> <TD width=50%>ExpandSz</TD> <TD width=50%>EXPANDSZ_METADATA</TD> </TR> <TR VALIGN="top"> <TD width=50%>IPSec, NTACL</TD> <TD width=50%>BINARY_METADATA</TD> </TR> <TR VALIGN="top"> <TD width=50%>List</TD> <TD width=50%>MULTISZ_METADATA</TD> </TR> <TR VALIGN="top"> <TD width=50%>MimeMapList</TD> <TD width=50%>MULTISZ_METADATA</TD> </TR> </TABLE><BR> <hr class="iis" size="1"> <p align="center"><em><a href="../../../common/colegal.htm">© 1997-2001 Microsoft Corporation. All rights reserved.</a></em></p> </BODY> </HTML>