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