TextEncoderSettings 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示仅允许特定 Unicode 码位的筛选器。
public ref class TextEncoderSettings
public class TextEncoderSettings
type TextEncoderSettings = class
Public Class TextEncoderSettings
- 继承
-
TextEncoderSettings
注解
此类型的源代码在 GitHub 上的 System.Text.Encodings.Web 项目中可用。 还可以用作代码示例的单元测试位于 GitHub 上的 System.Text.Encodings.Web/tests 文件夹中。
构造函数
| TextEncoderSettings() |
实例化空的筛选器(默认情况下不允许通过任何码位)。 |
| TextEncoderSettings(TextEncoderSettings) |
通过克隆另一 TextEncoderSettings 对象的允许列表来实例化筛选器。 |
| TextEncoderSettings(UnicodeRange[]) |
实例化筛选器,其中该筛选器仅允许 |
方法
| AllowCharacter(Char) |
允许由 |
| AllowCharacters(Char[]) |
允许 |
| AllowCodePoints(IEnumerable<Int32>) |
允许由 |
| AllowRange(UnicodeRange) |
允许 |
| AllowRanges(UnicodeRange[]) |
允许 |
| Clear() |
通过禁止所有字符来重置该对象。 |
| Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
| ForbidCharacter(Char) |
禁止字符 |
| ForbidCharacters(Char[]) |
禁止由 |
| ForbidRange(UnicodeRange) |
禁止由 |
| ForbidRanges(UnicodeRange[]) |
禁止由 |
| GetAllowedCodePoints() |
获取所有允许码位的枚举器。 |
| GetHashCode() |
作为默认哈希函数。 (继承自 Object) |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。 (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。 (继承自 Object) |