HttpEncoder.Current プロパティ

定義

アプリケーションで使用する HttpEncoder の種類を取得または設定します。

public:
 static property System::Web::Util::HttpEncoder ^ Current { System::Web::Util::HttpEncoder ^ get(); void set(System::Web::Util::HttpEncoder ^ value); };
public static System.Web.Util.HttpEncoder Current { get; set; }
member this.Current : System.Web.Util.HttpEncoder with get, set
Public Shared Property Current As HttpEncoder

プロパティ値

HttpEncoder

使用するエンコーダー/デコーダーの種類への参照。

例外

このプロパティに割り当てられているエンコーダー インスタンスは null です。

注釈

HttpEncoder構成ファイルに派生型が指定されている場合 Current 、プロパティはカスタム型への参照を返します。 ただし、カスタムエンコーダーが使用されていない場合、プロパティは既定の ASP.NET インスタンスへの参照を返し HttpEncoder ます。

Currentプロパティはスレッドセーフではありません。 このプロパティは、が Application_Start 単一のスレッドで実行されるため、アプリケーションのメソッドでのみ設定し Application_Start ます。

適用対象