다음을 통해 공유


WorkerProcess.AppPoolName 속성

정의

작업자 프로세스에 대한 애플리케이션 풀 식별자를 가져옵니다.

public:
 property System::String ^ AppPoolName { System::String ^ get(); };
public string AppPoolName { get; }
member this.AppPoolName : string
Public ReadOnly Property AppPoolName As String

속성 값

작업자 프로세스에 대한 애플리케이션 풀 식별자입니다.

예제

다음 예제에서는 현재 실행 중인 작업자 프로세스 및 연결된 속성을 열거하는 방법을 보여 줍니다.

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Web.Administration;
using Microsoft.Web.Management;

namespace AdministrationSnippets
{
    public class MicrosoftWebAdministrationWorkerProcess
    {
        public void EnumerateWorkerProcess()
        {
            ServerManager manager = new ServerManager();
            foreach (WorkerProcess proc in manager.WorkerProcesses)
            {
                Console.WriteLine("WorkerProcess found: {0}", proc.ProcessId);
                Console.WriteLine("\t|--AppPool : {0}", proc.AppPoolName);
                Console.WriteLine("\t|--ProcGuid: {0}", proc.ProcessGuid);
                Console.WriteLine("\t|--State   : {0}", proc.State.ToString());

                foreach (ApplicationDomain appDom in proc.ApplicationDomains)
                {
                    Console.WriteLine(
                        "\t+--ApplicationDomain Found: {0}", appDom.Id);
                    Console.WriteLine(
                        "\t\t|--AppDomPhysPath: {0}", appDom.PhysicalPath);
                    Console.WriteLine(
                        "\t\t+--AppDomVirtPath: {0}", appDom.VirtualPath);
                }
            }
        }
    }
}

적용 대상