IIsLogModules

IIsLogModules 개체는 IIsLogModule 개체의 컬렉션이 들어 있는 ADSI 컨테이너 개체입니다. IIsLogModules 개체를 사용하여 컴퓨터 수준(IIsComputer)에서 로그 모듈을 관리할 수 있습니다.

IIsLogModules 개체는 ADSI 컨테이너 개체입니다.

ADsPath

IIS://MachineName/LOGGING

여기서 MachineName은 임의의 이름 또는 "LocalHost"일 수 있습니다.

구문

varReturn = object.Method

인수

varReturn
이 메서드로부터 반환 값을 받는 변수입니다.
object
대개 이전 GetObject 실행 결과로서 IIsLogModules 개체를 포함하는 변수입니다.
Method
선택한 개체 메서드입니다.

포함

IIsLogModule

속성

ADSI 개체 속성

메서드

ADSI 개체 메서드 ADSI 개체의 표준 메서드입니다.
ADSI 컨테이너 개체 메서드 ADSI 컨테이너 개체의 표준 메서드입니다.

코드 예

<% 
'Get log properties for a log module at a server. 
  Dim LoggingModules, CurrentObj 
'Get the object for the first Web server.
  Set CurrentObj = GetObject("IIS://LocalHost/W3SVC/1") 
'Access the log modules at the computer level.
  Set LoggingModules = GetObject("IIS://LocalHost/logging") 
'Loop through the installed modules to find the currently 
'selected module at this server. 
  If CurrentObj.LogPluginClsid <> "" Then 
    For Each LogModule in LoggingModules 
      If LogModule.LogModuleID = CurrentObj.LogPluginClsid Then 
      Response.Write LogModule.Name & "<BR>" 
      End If 
    Next 
  'Display a property of the current module. 
  Response.Write CurrentObj.LogFileDate 
  End If 
%> 

© 1997-2001 Microsoft Corporation. All rights reserved.