Create

ADSI 컨테이너 개체 Create 메서드는 컨테이너에 새로운 개체를 작성합니다.

구문

Set NewObj = Object.Create(KeyType, Name)

인수

NewObj
컨테이너에 만들어진 새 개체에 액세스합니다.
object
대개 이전 GetObject 실행 결과로서 IIS 관리 개체를 포함합니다.
KeyType
작성할 IIS 관리 개체의 형식입니다.
Name
새 개체의 이름입니다.

코드 예

<% 
  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

%> 
 

관련 항목

GetObject, Delete, CopyHere, MoveHere


© 1997-2001 Microsoft Corporation. All rights reserved.