ModulesSection 클래스
구성 파일의 모듈 섹션을 나타냅니다.
구문
class ModulesSection : ConfigurationSectionWithCollection
메서드
다음 표에서는 클래스에서 노출하는 메서드를 나열합니다 ModulesSection
.
속성 | 설명 |
---|---|
추가 | ConfigurationSectionWithCollection에서 상속됩니다. |
지우기 | ConfigurationSectionWithCollection 에서 상속됩니다. |
가져오기 | ConfigurationSectionWithCollection 에서 상속됩니다. |
GetAllowDefinition | ( ConfigurationSection에서 상속됩니다.) |
GetAllowLocation | ConfigurationSection 에서 상속됩니다. |
제거 | ConfigurationSectionWithCollection 에서 상속됩니다. |
RevertToParent | ConfigurationSection 에서 상속됩니다. |
SetAllowDefinition | ConfigurationSection 에서 상속됩니다. |
SetAllowLocation | ConfigurationSection 에서 상속됩니다. |
속성
다음 표에서는 클래스에서 노출하는 속성을 나열합니다 ModulesSection
.
속성 | Description |
---|---|
Location |
(에서 ConfigurationSection 상속됨) 키 속성입니다. |
Modules |
읽기/쓰기 가 가능한 ModuleAction 값의 배열입니다. |
Path |
(에서 ConfigurationSection 상속됨) 키 속성입니다. |
RunAllManagedModulesForAllRequests |
읽기/쓰기 boolean 값입니다. true 모든 관리되는 모듈이 모든 요청에 대해 실행되면 이고, 그렇지 않으면 입니다 false . 기본값은 false 입니다. |
SectionInformation |
ConfigurationSection 에서 상속됩니다. |
를 서브클래싱합니다.
이 클래스에는 하위 클래스가 없습니다.
설명
이 클래스에는 웹 서버의 특정 수준에서 사용하도록 설정된 전역 모듈과 동일한 수준에서 요청 작업을 수행하는 관리되는 모듈이 포함되어 있습니다.
예제
다음 예제에서는 ApplicationHost.config 파일의 섹션에 네이 <modules>
티브 및 관리 모듈을 표시합니다.
' Connect to the WMI WebAdministration namespace.
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Get the <modules> section.
Set oSection = oWebAdmin.Get( _
"ModulesSection.Path='MACHINE/WEBROOT/APPHOST/',Location=''")
' Display the native modules.
WScript.Echo "---------- Native -------------"
For Each oModule In oSection.Modules
If oModule.Type = "" Then
WScript.Echo " " & oModule.Name
End If
Next
WScript.Echo
' Display the managed modules.
WScript.Echo "---------- Managed ----------"
For Each oModule In oSection.Modules
If oModule.Type <> "" Then
If Len(oModule.Name) < 12 Then
WScript.Echo " " & oModule.Name & _
vbTab & vbTab & vbTab & "[" & oModule.Type & "]"
ElseIf Len(oModule.Name) < 20 Then
WScript.Echo " " & oModule.Name & _
vbTab & vbTab & "[" & oModule.Type & "]"
Else
WScript.Echo " " & oModule.Name & _
vbTab & "[" & oModule.Type & "]"
End If
End If
Next
상속 계층 구조
ConfigurationSectionWithCollection
ModulesSection
요구 사항
형식 | Description |
---|---|
클라이언트 | - Windows Vista의 IIS 7.0 - Windows 7의 IIS 7.5 - Windows 8의 IIS 8.0 - WINDOWS 10 IIS 10.0 |
서버 | - Windows Server 2008의 IIS 7.0 - Windows Server 2008 R2의 IIS 7.5 - Windows Server 2012의 IIS 8.0 - Windows Server 2012 R2의 IIS 8.5 - WINDOWS SERVER 2016 IIS 10.0 |
제품 | - IIS 7.0, IIS 7.5, IIS 8.0, IIS 8.5, IIS 10.0 |
MOF 파일 | WebAdministration.mof |
참고 항목
ConfigurationSectionWithCollection 클래스
GlobalModuleElement 클래스
GlobalModulesSection 클래스
ModuleAction 클래스