IIS 애플리케이션과 해당 가상 디렉터리 간의 관계를 제공합니다.
구문
class ApplicationContainsVirtualDirectory : ObjectContainerAssociation
메서드
이 클래스에는 메서드가 없습니다.
속성
다음 표에서는 클래스에서 노출하는 속성을 나열합니다 ApplicationContainsVirtualDirectory .
| 속성 | Description |
|---|---|
Container |
(ObjectContainerAssociation에서 상속됩니다.) IIS 애플리케이션을 나타내는 읽기 전용 Application 개체입니다. 키 속성입니다. |
Element |
(에서 ObjectContainerAssociation상속됨) IIS 가상 디렉터리를 나타내는 읽기 전용 VirtualDirectory 개체입니다. 키 속성입니다. |
를 서브클래싱합니다.
이 클래스에는 하위 클래스가 없습니다.
설명
이 연결은 지정된 애플리케이션에 대한 가상 디렉터리를 열거합니다.
예제
다음 예제에서는 기본 웹 사이트에 대한 가상 디렉터리 경로 및 실제 경로를 나열합니다.
' Connect to the WMI WebAdministration namespace.
Set oWebAdmin = GetObject("winmgmts:root\WebAdministration")
' Get the application for the default Web site.
Set oApp = oWebAdmin.Get("Application.SiteName='Default Web Site',Path='/'")
' Return the set of virtual directory instances in the application.
Set oVDirs = oApp.Associators_("ApplicationContainsVirtualDirectory")
' Print out the virtual directories and their physical paths.
For Each oVDir In oVDirs
WScript.Echo "Virtual Path: " & oVDir.Path
WScript.Echo "PhysicalPath: " & oVDir.PhysicalPath
WScript.Echo
Next
앞의 코드 예제에서 다음 구문을 확인합니다.
Set oVDirs = oApp.Associators_("ApplicationContainsVirtualDirectory")
코드를 간소화하기 위해 다음 구문을 대신 사용하면 정확한 이름을 기억하지 않고도 연결을 사용할 수 있습니다.
Set oVDirs = oApp.Associators_(, "VirtualDirectory")
상속 계층 구조
ApplicationContainsVirtualDirectory
요구 사항
| 형식 | 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 |
참고 항목
애플리케이션 클래스
ObjectContainerAssociation 클래스
VirtualDirectory 클래스