Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Text.​Encodings.​Web.​TextEncoderSettings

Assembly: System.Text.Encodings.Web

Inheritance: object → TextEncoderSettings

Represents a filter that allows only certain Unicode code points.

Methods

public void
AllowCharacter​(char character)
Allows the character specified by <paramref name="character" /> through the filter.
character The allowed character.
public void
AllowCharacters​(char[] characters)
Allows all characters specified by <paramref name="characters" /> through the filter.
characters The allowed characters.
public void
AllowCodePoints​(Collections.​Generic.​IEnumerable<​int> codePoints)
Allows all code points specified by <paramref name="codePoints" /> .
codePoints The allowed code points.
public void
AllowRange​(Unicode.​UnicodeRange range)
Allows all characters specified by <paramref name="range" /> through the filter.
range The range of characters to be allowed.
public void
AllowRanges​(Unicode.​UnicodeRange[] ranges)
Allows all characters specified by <paramref name="ranges" /> through the filter.
ranges The ranges of characters to be allowed.
public void
Clear​()
Resets this object by disallowing all characters.
public void
ForbidCharacter​(char character)
Disallows the character <paramref name="character" /> through the filter.
character The disallowed character.
public void
ForbidCharacters​(char[] characters)
Disallows all characters specified by <paramref name="characters" /> through the filter.
characters The disallowed characters.
public void
ForbidRange​(Unicode.​UnicodeRange range)
Disallows all characters specified by <paramref name="range" /> through the filter.
range The range of characters to be disallowed.
public void
ForbidRanges​(Unicode.​UnicodeRange[] ranges)
Disallows all characters specified by <paramref name="ranges" /> through the filter.
ranges The ranges of characters to be disallowed.
GetAllowedCodePoints​()
Gets an enumerator of all allowed code points.
Returns The enumerator of allowed code points.
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object