UrlEncoder.Create UrlEncoder.Create UrlEncoder.Create UrlEncoder.Create Method

Definition

Overloads

Create(TextEncoderSettings) Create(TextEncoderSettings) Create(TextEncoderSettings) Create(TextEncoderSettings)

Creates a new instance of UrlEncoder class with the specified settings.

Create(UnicodeRange[]) Create(UnicodeRange[]) Create(UnicodeRange[]) Create(UnicodeRange[])

Creates a new instance of the UrlEncoder class that specifies characters the encoder is allowed to not encode.

Create(TextEncoderSettings) Create(TextEncoderSettings) Create(TextEncoderSettings) Create(TextEncoderSettings)

Creates a new instance of UrlEncoder class with the specified settings.

public:
 static System::Text::Encodings::Web::UrlEncoder ^ Create(System::Text::Encodings::Web::TextEncoderSettings ^ settings);
public static System.Text.Encodings.Web.UrlEncoder Create (System.Text.Encodings.Web.TextEncoderSettings settings);
static member Create : System.Text.Encodings.Web.TextEncoderSettings -> System.Text.Encodings.Web.UrlEncoder
Public Shared Function Create (settings As TextEncoderSettings) As UrlEncoder

Parameters

settings
TextEncoderSettings TextEncoderSettings TextEncoderSettings TextEncoderSettings

Settings that control how the UrlEncoder instance encodes, primarily which characters to encode.

Returns

A new instance of the UrlEncoder class.

Exceptions

Create(UnicodeRange[]) Create(UnicodeRange[]) Create(UnicodeRange[]) Create(UnicodeRange[])

Creates a new instance of the UrlEncoder class that specifies characters the encoder is allowed to not encode.

public:
 static System::Text::Encodings::Web::UrlEncoder ^ Create(... cli::array <System::Text::Unicode::UnicodeRange ^> ^ allowedRanges);
public static System.Text.Encodings.Web.UrlEncoder Create (params System.Text.Unicode.UnicodeRange[] allowedRanges);
static member Create : System.Text.Unicode.UnicodeRange[] -> System.Text.Encodings.Web.UrlEncoder
Public Shared Function Create (ParamArray allowedRanges As UnicodeRange()) As UrlEncoder

Parameters

allowedRanges
UnicodeRange[]

The set of characters that the encoder is allowed to not encode.

Returns

A new instance of the UrlEncoder class.

Exceptions

Remarks

Some characters in allowedRanges might still be encoded; that is, this parameter indicates what ranges the encoder is allowed to not encode, not what characters it must not encode.

Applies to