ApplicationPool.Recycle Method

Definition

Recycles the current application pool.

public:
 Microsoft::Web::Administration::ObjectState Recycle();
public Microsoft.Web.Administration.ObjectState Recycle ();
member this.Recycle : unit -> Microsoft.Web.Administration.ObjectState
Public Function Recycle () As ObjectState

Returns

One of the ObjectState values.

Remarks

This method recycles the application pool and then returns the new application pool state.

Applies to