英語で読む 編集

次の方法で共有


TextEncoderSettings Class

Definition

Represents a filter that allows only certain Unicode code points.

C#
public class TextEncoderSettings
Inheritance
TextEncoderSettings

Remarks

The source code for this type is available in the System.Text.Encodings.Web project on GitHub. Unit tests that can also serve as code examples are found in the System.Text.Encodings.Web/tests folder on GitHub.

Constructors

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.

Methods

AllowCharacter(Char)

Allows the character specified by character through the filter.

AllowCharacters(Char[])

Allows all characters specified by characters through the filter.

AllowCodePoints(IEnumerable<Int32>)

Allows all code points specified by codePoints.

AllowRange(UnicodeRange)

Allows all characters specified by range through the filter.

AllowRanges(UnicodeRange[])

Allows all characters specified by ranges through the filter.

Clear()

Resets this object by disallowing all characters.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
ForbidCharacter(Char)

Disallows the character character through the filter.

ForbidCharacters(Char[])

Disallows all characters specified by characters through the filter.

ForbidRange(UnicodeRange)

Disallows all characters specified by range through the filter.

ForbidRanges(UnicodeRange[])

Disallows all characters specified by ranges through the filter.

GetAllowedCodePoints()

Gets an enumerator of all allowed code points.

GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to

製品 バージョン
.NET Core 1.0, Core 1.1, Core 3.0, Core 3.1, 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided)