SiteContainsConfigurationSection Class1
웹 사이트와 해당 구성 섹션 간의 관계를 제공합니다.
구문
class SiteContainsConfigurationSection : ObjectConfigurationAssociation
메서드
이 클래스에는 메서드가 없습니다.
속성
다음 표에서는 클래스의 속성을 나열합니다 SiteContainsConfigurationSection
.
속성 | Description |
---|---|
Container |
IIS 웹 사이트를 나타내는 읽기 전용 사이트 개체입니다. |
Element |
웹 사이트의 구성 섹션을 노출하는 읽기 전용 ConfigurationSection 개체입니다. |
를 서브클래싱합니다.
이 클래스에는 하위 클래스가 없습니다.
설명
연결은 개체 수준에서 정의된 개체의 인스턴스만 반환합니다. 예를 들어 섹션이 <authentication>
사이트 수준에서 Web.config 파일에 정의된 유일한 섹션인 경우 개체의 ConfigurationSection
AuthenticationSection instance만 반환됩니다.
사용 가능한 모든 섹션을 얻으려면 ConfiguredObject 클래스의 GetAllSections 메서드를 사용해야 합니다.
예제
다음 예제에서는 기본 웹 사이트의 Web.config 수준에서 정의된 모든 구성 섹션을 나열합니다.
' Connect to the WMI WebAdministration namespace.
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Get the default Web site.
Set oSite = oWebAdmin.Get("Site.Name='Default Web Site'")
' List the configuration sections present in the Web.config file
' of the default Web site.
Set oSections = oSite.Associators_("SiteContainsConfigurationSection")
For Each oSection In oSections
WScript.Echo oSection.Path_.Class
Next
상속 계층 구조
ObjectConfigurationAssociation
SiteContainsConfigurationSection
요구 사항
형식 | 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 |
참고 항목
ConfiguredObject.GetAllSections 메서드
ObjectConfigurationAssociation 클래스
사이트 클래스
VirtualDirectoryContainsConfigurationSection 클래스