TextEncoderSettings Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a filter that allows only certain Unicode code points.
public ref class TextEncoderSettings
public class TextEncoderSettings
type TextEncoderSettings = class
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 |
Methods
AllowCharacter(Char) |
Allows the character specified by |
AllowCharacters(Char[]) |
Allows all characters specified by |
AllowCodePoints(IEnumerable<Int32>) |
Allows all code points specified by |
AllowRange(UnicodeRange) |
Allows all characters specified by |
AllowRanges(UnicodeRange[]) |
Allows all characters specified by |
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 |
ForbidCharacters(Char[]) |
Disallows all characters specified by |
ForbidRange(UnicodeRange) |
Disallows all characters specified by |
ForbidRanges(UnicodeRange[]) |
Disallows all characters specified by |
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) |