다음을 통해 공유


ApplicationPoolFailure 클래스

정의

애플리케이션 풀이 실패할 때 수행할 작업을 정의합니다.

public ref class ApplicationPoolFailure sealed : Microsoft::Web::Administration::ConfigurationElement
public sealed class ApplicationPoolFailure : Microsoft.Web.Administration.ConfigurationElement
type ApplicationPoolFailure = class
    inherit ConfigurationElement
Public NotInheritable Class ApplicationPoolFailure
Inherits ConfigurationElement
상속
ApplicationPoolFailure

예제

다음 예제에서는 개체의 속성 값을 ApplicationPoolFailure 표시합니다. 속성이 로 RapidFailProtectionRapidFailProtectionInterval 설정된 true경우 및 RapidFailProtectionMaxCrashes 속성 값이 설정되고 애플리케이션 풀 오류가 커밋됩니다.

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

namespace AdministrationSnippets
{
    class ApplicationPoolFailure
    {
        public void GetApplicationPoolFailures()
        {
            ServerManager manager = new ServerManager();
            // Get the application pool failures.
            Console.WriteLine("AutoShutdownExe:\t{0}",
                manager.ApplicationPoolDefaults.Failure.AutoShutdownExe);
            Console.WriteLine("AutoShutdownParams:\t{0}",
                manager.ApplicationPoolDefaults.Failure.AutoShutdownParams);
            Console.WriteLine("LoadBalancerCapabilities:\t{0}",
                manager.ApplicationPoolDefaults.Failure.LoadBalancerCapabilities);
            Console.WriteLine("OrphanActionExe:\t{0}",
                manager.ApplicationPoolDefaults.Failure.OrphanActionExe);
            Console.WriteLine("OrphanActionParams:\t{0}",
                manager.ApplicationPoolDefaults.Failure.OrphanActionParams);
            Console.WriteLine("OrphanWorkerProcess:\t{0}",
                manager.ApplicationPoolDefaults.Failure.OrphanWorkerProcess);
            Console.WriteLine("RapidFailProtection:\t{0}",
                manager.ApplicationPoolDefaults.Failure.RapidFailProtection);
            Console.WriteLine("RapidFailProtectionInterval:\t{0}",
                manager.ApplicationPoolDefaults.Failure.RapidFailProtectionInterval);
            Console.WriteLine("RapidFailProtectionMaxCrashes:\t{0}",
                manager.ApplicationPoolDefaults.Failure.RapidFailProtectionMaxCrashes);
            // If the RapidFailProtection is enabled, set 
            // the Interval and maximum crashes properties.
            if (manager.ApplicationPoolDefaults.Failure.RapidFailProtection)
            {
                manager.ApplicationPoolDefaults.Failure.
                    RapidFailProtectionInterval = (TimeSpan.FromMinutes(10));
                manager.ApplicationPoolDefaults.Failure.
                    RapidFailProtectionMaxCrashes = 6;
            }
            // Commit the changes to ApplicationHost.config file.
            manager.CommitChanges();
        }
    }
}

설명

이 클래스는 IIS 구성 시스템의 애플리케이션 풀 오류 구성을 나타냅니다. 속성은 applicationPools 요소에 대한 applicationPoolDefaults 요소에 대한 실패 요소의 특성에 직접 해당합니다.

개체의 속성이 수정되면 메서드를 ApplicationPoolFailure 호출 Microsoft.Web.Administration.ServerManager.CommitChanges 하여 값을 ApplicationHost.config 파일 및 IIS 관리자에 유지해야 합니다.

속성

Attributes

이 요소의 특성 목록을 포함하는 구성 특성 컬렉션을 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
AutoShutdownExe

서비스가 신속한 장애 보호를 위해 애플리케이션 풀을 종료할 때 실행할 실행 파일의 경로를 가져오거나 설정합니다.

AutoShutdownParams

속성에 지정된 AutoShutdownExe 실행 파일에 대한 명령줄 매개 변수를 가져오거나 설정합니다.

ChildElements

현재 요소의 모든 자식 요소를 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
ElementTagName

애플리케이션 풀이 실패할 때 수행할 작업을 정의합니다.

(다음에서 상속됨 ConfigurationElement)
IsLocallyStored

구성 요소가 특정 구성 파일에 저장되는지 여부를 나타내는 값을 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
Item[String]

지정된 이름의 특성을 가져오거나 설정합니다.

(다음에서 상속됨 ConfigurationElement)
LoadBalancerCapabilities

서비스를 사용할 수 없는 경우 서비스의 응답 동작을 가져오거나 설정합니다.

Methods

구성 요소에 대한 메서드 컬렉션을 가져옵니다.

(다음에서 상속됨 ConfigurationElement)
OrphanActionExe

서비스가 작업자 프로세스를 분리할 때 실행할 실행 파일의 경로를 가져오거나 설정합니다.

OrphanActionParams

속성에 의해 명명된 실행 파일에 대한 명령줄 매개 변수를 OrphanActionExe 가져오거나 설정합니다.

OrphanWorkerProcess

애플리케이션 풀이 실패할 때 작업자 프로세스를 분리 상태에 넣을지 여부를 나타내는 값을 가져오거나 설정합니다.

RapidFailProtection

신속한 장애 방지가 설정되어 있는지 여부를 나타내는 값을 가져오거나 설정합니다.

RapidFailProtectionInterval

프로세스의 실패 횟수가 다시 설정되기 전의 시간 간격을 가져오거나 설정합니다.

RapidFailProtectionMaxCrashes

속성에 지정된 RapidFailProtectionInterval 시간 내에 허용되는 최대 오류 수를 가져오거나 설정합니다.

RawAttributes

애플리케이션 풀이 실패할 때 수행할 작업을 정의합니다.

(다음에서 상속됨 ConfigurationElement)
Schema

현재 요소의 스키마를 가져옵니다.

(다음에서 상속됨 ConfigurationElement)

메서드

Delete()

애플리케이션 풀이 실패할 때 수행할 작업을 정의합니다.

(다음에서 상속됨 ConfigurationElement)
GetAttribute(String)

요청된 ConfigurationAttribute 특성을 나타내는 개체를 반환합니다.

(다음에서 상속됨 ConfigurationElement)
GetAttributeValue(String)

지정된 특성의 값을 반환합니다.

(다음에서 상속됨 ConfigurationElement)
GetChildElement(String)

현재 구성 요소 아래에 있고 지정된 이름을 가진 자식 요소를 반환합니다.

(다음에서 상속됨 ConfigurationElement)
GetChildElement(String, Type)

현재 구성 요소 아래에 있고 지정된 이름과 형식을 가진 자식 요소를 반환합니다.

(다음에서 상속됨 ConfigurationElement)
GetCollection()

현재 구성 요소의 기본 컬렉션을 반환합니다.

(다음에서 상속됨 ConfigurationElement)
GetCollection(String)

현재 구성 요소에 속하는 모든 구성 요소를 반환합니다.

(다음에서 상속됨 ConfigurationElement)
GetCollection(String, Type)

지정된 이름과 형식을 가지며 현재 구성 요소 아래에 있는 구성 요소를 반환합니다.

(다음에서 상속됨 ConfigurationElement)
GetCollection(Type)

지정된 형식을 가지며 현재 구성 요소 아래에 있는 구성 요소를 반환합니다.

(다음에서 상속됨 ConfigurationElement)
GetMetadata(String)

요소 스키마에서 메타데이터 값을 반환합니다.

(다음에서 상속됨 ConfigurationElement)
SetAttributeValue(String, Object)

지정된 특성의 값을 설정합니다.

(다음에서 상속됨 ConfigurationElement)
SetMetadata(String, Object)

요소 스키마의 메타데이터 값을 설정합니다.

(다음에서 상속됨 ConfigurationElement)

적용 대상

추가 정보