อ่านในภาษาอังกฤษ แก้ไข

แชร์ผ่าน


TextEncoderSettings Constructors

Definition

Overloads

TextEncoderSettings()

Instantiates an empty filter (allows no code points through by default).

TextEncoderSettings(TextEncoderSettings)

Instantiates a filter by cloning the allowed list of another TextEncoderSettings object.

TextEncoderSettings(UnicodeRange[])

Instantiates a filter where only the character ranges specified by allowedRanges are allowed by the filter.

TextEncoderSettings()

Source:
TextEncoderSettings.cs
Source:
TextEncoderSettings.cs
Source:
TextEncoderSettings.cs
Source:
TextEncoderSettings.cs

Instantiates an empty filter (allows no code points through by default).

C#
public TextEncoderSettings();

Applies to

.NET 10 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET Core 1.0, Core 1.1, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

TextEncoderSettings(TextEncoderSettings)

Source:
TextEncoderSettings.cs
Source:
TextEncoderSettings.cs
Source:
TextEncoderSettings.cs
Source:
TextEncoderSettings.cs

Instantiates a filter by cloning the allowed list of another TextEncoderSettings object.

C#
public TextEncoderSettings(System.Text.Encodings.Web.TextEncoderSettings other);

Parameters

other
TextEncoderSettings

The other TextEncoderSettings object to be cloned.

Applies to

.NET 10 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET Core 1.0, Core 1.1, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)

TextEncoderSettings(UnicodeRange[])

Source:
TextEncoderSettings.cs
Source:
TextEncoderSettings.cs
Source:
TextEncoderSettings.cs
Source:
TextEncoderSettings.cs

Instantiates a filter where only the character ranges specified by allowedRanges are allowed by the filter.

C#
public TextEncoderSettings(params System.Text.Unicode.UnicodeRange[] allowedRanges);

Parameters

allowedRanges
UnicodeRange[]

The allowed character ranges.

Exceptions

allowedRanges is null.

Applies to

.NET 10 และรุ่นอื่นๆ
ผลิตภัณฑ์ เวอร์ชัน
.NET Core 1.0, Core 1.1, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)