HttpHandlerAction コンストラクター
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
HttpHandlerAction クラスの新しいインスタンスを初期化します。
オーバーロード
| 名前 | 説明 |
|---|---|
| HttpHandlerAction(String, String, String) |
渡されたパラメーターを使用して、 HttpHandlerAction クラスの新しいインスタンスを初期化します。 |
| HttpHandlerAction(String, String, String, Boolean) |
渡されたパラメーターを使用して、 HttpHandlerAction クラスの新しいインスタンスを初期化します。 |
HttpHandlerAction(String, String, String)
渡されたパラメーターを使用して、 HttpHandlerAction クラスの新しいインスタンスを初期化します。
public:
HttpHandlerAction(System::String ^ path, System::String ^ type, System::String ^ verb);
public HttpHandlerAction(string path, string type, string verb);
new System.Web.Configuration.HttpHandlerAction : string * string * string -> System.Web.Configuration.HttpHandlerAction
Public Sub New (path As String, type As String, verb As String)
パラメーター
- path
- String
HttpHandlerAction URL パス。
- type
- String
バージョン、カルチャ、および公開キー トークンで構成されるコンマ区切りのクラス/アセンブリの組み合わせ。
- verb
- String
HTTP 動詞のコンマ区切りリスト ("GET、PUT、POST" など)。
注釈
HttpHandlerAction コンストラクターは、コードから直接使用するためのものではありません。 ASP.NET 構成システムによって呼び出されます。 Handlers プロパティを使用して、HttpHandlerAction クラスのインスタンスを取得します。
適用対象
HttpHandlerAction(String, String, String, Boolean)
渡されたパラメーターを使用して、 HttpHandlerAction クラスの新しいインスタンスを初期化します。
public:
HttpHandlerAction(System::String ^ path, System::String ^ type, System::String ^ verb, bool validate);
public HttpHandlerAction(string path, string type, string verb, bool validate);
new System.Web.Configuration.HttpHandlerAction : string * string * string * bool -> System.Web.Configuration.HttpHandlerAction
Public Sub New (path As String, type As String, verb As String, validate As Boolean)
パラメーター
- path
- String
HttpHandlerAction URL パス。
- type
- String
バージョン、カルチャ、および公開キー トークンで構成されるコンマ区切りのクラス/アセンブリの組み合わせ。
- verb
- String
HTTP 動詞のコンマ区切りリスト ("GET、PUT、POST" など)。
- validate
- Boolean
true 検証を許可する場合。それ以外の場合は false。
false場合、ASP.NET は、実際の一致する要求が来るまでクラスの読み込みを試みず、エラーを遅延させる可能性がありますが、起動時間が短縮される可能性があります。
例
次のコード例は、 HttpHandlerAction オブジェクトを作成する方法を示しています。
// Add a new HttpHandlerAction to the Handlers property HttpHandlerAction collection.
httpHandlersSection.Handlers.Add(new HttpHandlerAction(
"Calculator.custom",
"Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler",
"GET",
true));
' Add a new HttpHandlerAction to the Handlers property HttpHandlerAction collection.
httpHandlersSection.Handlers.Add(new HttpHandlerAction( _
"Calculator.custom", _
"Samples.Aspnet.SystemWebConfiguration.Calculator, CalculatorHandler", _
"GET", _
true))
注釈
HttpHandlerAction コンストラクターは、コードから直接使用するためのものではありません。 ASP.NET 構成システムによって呼び出されます。 Handlers プロパティを使用して、HttpHandlerAction クラスのインスタンスを取得します。