ApplicationPoolRecycling クラス

定義

アプリケーション プールのリサイクル設定を構成します。

public ref class ApplicationPoolRecycling sealed : Microsoft::Web::Administration::ConfigurationElement
public sealed class ApplicationPoolRecycling : Microsoft.Web.Administration.ConfigurationElement
type ApplicationPoolRecycling = class
    inherit ConfigurationElement
Public NotInheritable Class ApplicationPoolRecycling
Inherits ConfigurationElement
継承
ApplicationPoolRecycling

次の例では、 オブジェクトのいくつかのプロパティ値を ApplicationPoolRecycling 表示します。 プロパティが LogEventOnRecycleRequests変更され、 ScheduleMicrosoft.Web.Administration.ApplicationPoolPeriodicRestart.Time プロパティが 5 分に変更されます。

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

namespace AdministrationSnippets
{
    class ApplicationPoolRecycling
    {
        public void GetApplicationPoolRecycling()
        {
            ServerManager manager = new ServerManager();
            // Get the application recycling property values.
            Console.WriteLine("DisallowOverlappingRotation:\t{0}",
                manager.ApplicationPools["DefaultAppPool"].Recycling.DisallowOverlappingRotation.ToString());
            Console.WriteLine("DisallowRotationOnConfigChange:\t{0}",
                manager.ApplicationPools["DefaultAppPool"].Recycling.DisallowRotationOnConfigChange.ToString());
            Console.WriteLine("LogEventOnRecycle:\t{0}",
                manager.ApplicationPools["DefaultAppPool"].Recycling.LogEventOnRecycle.ToString());
            Console.WriteLine("PeriodicRestart.Time:\t{0}",
                manager.ApplicationPools["DefaultAppPool"].Recycling.PeriodicRestart.Time);
            // Change the LogEventOnRecycle and PeriodicRestart.Time properties.
            manager.ApplicationPools["DefaultAppPool"].Recycling.LogEventOnRecycle = (RecyclingLogEventOnRecycle)6;
            manager.ApplicationPools["DefaultAppPool"].Recycling.PeriodicRestart.Time = TimeSpan.FromMinutes(5);
            // Commit the changes to ApplicationHost.config file.
            manager.CommitChanges();
        }
    }
}

注釈

既定のアプリケーション プールのリサイクル設定がロックされていない限り、個々のアプリケーション プール設定でオーバーライドできます。

オブジェクトのプロパティが変更された場合は、 メソッドをApplicationPoolRecyclingMicrosoft.Web.Administration.ServerManager.CommitChanges呼び出して、ApplicationHost.config ファイルと IIS マネージャーに値を保持する必要があります。

プロパティ

Attributes

この要素の属性の一覧を含む構成属性コレクションを取得します。

(継承元 ConfigurationElement)
ChildElements

現在の要素のすべての子要素を取得します。

(継承元 ConfigurationElement)
DisallowOverlappingRotation

重複するワーカー プロセスの起動動作を取得または設定します。

DisallowRotationOnConfigChange

構成の変更が検出された場合の、アプリケーション プール内の重複するワーカー プロセスの起動動作を取得または設定します。

ElementTagName

アプリケーション プールのリサイクル設定を構成します。

(継承元 ConfigurationElement)
IsLocallyStored

構成要素が特定の構成ファイルに格納されているかどうかを示す値を取得します。

(継承元 ConfigurationElement)
Item[String]

指定した名前の属性を取得または設定します。

(継承元 ConfigurationElement)
LogEventOnRecycle

リサイクル アプリケーション プールのログの動作を取得または設定します。

Methods

構成要素のメソッドのコレクションを取得します。

(継承元 ConfigurationElement)
PeriodicRestart

アプリケーション プールのリサイクルの設定を取得します。

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)

適用対象