#### Create

The ADSI container object Create method creates a new object in a container.

###### Syntax

Set NewObj = Object.Create(KeyType, Name)

###### Parts

NewObj
  Accesses the new object created in the container.
object
  Contains an IIS Admin Object, usually as a result of a previous GetObject operation.
KeyType
  The type of IIS Admin Object to create.
Name
  The name for the new object.

###### Code Example

    <%
      Dim WebServiceObj, ServerObj
    'Get the Web service object, which contains servers.
      Set WebServiceObj = GetObject("IIS://LocalHost/W3SVC")
    'Create a new Web server object in the container.
      Set ServerObj = WebServiceObj.Create("IIsWebServer", "3")
    'Add code to configure server and create root virtual directory.

`'Save the new object to the metabase.`

    ServerObj.SetInfo
    %>

###### See Also

GetObject, Delete, CopyHere, MoveHere

© 1997-2001 Microsoft Corporation. All rights reserved.