HttpEncoder::Current Property
Gets or set the HttpEncoder type that will be used in an application.
Assembly: System.Web (in System.Web.dll)
public: static property HttpEncoder^ Current { HttpEncoder^ get (); void set (HttpEncoder^ value); }
Property Value
Type: System.Web.Util::HttpEncoderA reference to the encoder/decoder type that will be used.
| Exception | Condition |
|---|---|
| ArgumentNullException | The encoder instance that is being assigned to this property is nullptr. |
If a derived HttpEncoder type is specified in the configuration file, the Current property returns a reference to the custom type. However, if no custom encoder is used, the property returns a reference to the default ASP.NET HttpEncoder instance.
The Current property is not thread-safe. Set this property only in the application's Application_Start method, because Application_Start runs on a single thread.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.