GlobalModulesSection 클래스
IIS 전역 모듈에 대한 구성 설정을 노출합니다.
구문
class GlobalModulesSection : ConfigurationSectionWithCollection
메서드
다음 표에서는 클래스에 의해 노출되는 메서드를 나열합니다 GlobalModulesSection
.
속성 | 설명 |
---|---|
추가 | ConfigurationSectionWithCollection에서 상속됩니다. |
지우기 | ConfigurationSectionWithCollection 에서 상속됩니다. |
가져오기 | ConfigurationSectionWithCollection 에서 상속됩니다. |
GetAllowDefinition | ( ConfigurationSection에서 상속됩니다.) |
GetAllowLocation | ConfigurationSection 에서 상속됩니다. |
제거 | ConfigurationSectionWithCollection 에서 상속됩니다. |
RevertToParent | ConfigurationSection 에서 상속됩니다. |
SetAllowDefinition | ConfigurationSection 에서 상속됩니다. |
SetAllowLocation | ConfigurationSection 에서 상속됩니다. |
속성
다음 표에서는 클래스에 의해 노출되는 속성을 나열합니다 GlobalModulesSection
.
속성 | Description |
---|---|
GlobalModules |
GlobalModuleElement 개체의 배열입니다. |
Location |
(에서 ConfigurationSection 상속됨) 키 속성입니다. |
Path |
(에서 ConfigurationSection 상속됨) 키 속성입니다. |
SectionInformation |
ConfigurationSection 에서 상속됩니다. |
를 서브클래싱합니다.
이 클래스에는 서브클래스가 없습니다.
설명
ApplicationHost.config 파일의 섹션은 <globalModules>
서버 수준에서 네이티브 모듈을 지정합니다. ApplicationHost.config 또는 Web.config 파일에서 원하는 구성 수준에서 섹션에 이름을 <modules>
추가하여 이러한 모듈을 사용하도록 설정할 수 있습니다. WMI에서 ModulesSection 클래스의 메서드를 Add
사용하여 이 작업을 수행할 수 있습니다.
예제
다음 예제에서는 섹션의 모듈을 <globalModules>
나열합니다.
' Connect to the WMI WebAdministration namespace.
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Get the ApplicationHost.config <globalModules> section.
Set oSection = oWebAdmin.Get( _
"GlobalModulesSection.Path=" & _
"'MACHINE/WEBROOT/APPHOST/',Location=''")
' Display the path.
WScript.Echo
WScript.Echo "Path: " & oSection.Path
WScript.Echo
' Display the global modules.
WScript.Echo "Global Modules"
WScript.Echo "--------------"
For Each oGMElement In oSection.GlobalModules
WScript.Echo "Module: " & oGMElement.Name
WScript.Echo "Image: " & oGMElement.Image
WScript.Echo "PreCondition: " & oGMElement.PreCondition
WScript.Echo
Next
상속 계층 구조
ConfigurationSectionWithCollection
GlobalModulesSection
요구 사항
형식 | 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 |
참고 항목
ConfigurationSection 클래스
ConfigurationSectionWithCollection 클래스
GlobalModuleElement 클래스
ModulesSection 클래스