LiteralEncoder 结构 
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
提供用于对文本进行编码的方法。
public value class LiteralEncoderpublic readonly struct LiteralEncoderpublic struct LiteralEncodertype LiteralEncoder = structPublic Structure LiteralEncoder- 继承
构造函数
| LiteralEncoder(BlobBuilder) | 提供用于对文本进行编码的方法。 | 
属性
| Builder | 提供用于对文本进行编码的方法。 | 
方法
| Scalar() | 返回用于对文本值进行编码的编码器。 | 
| TaggedScalar(Action<CustomAttributeElementTypeEncoder>, Action<ScalarEncoder>) | 使用指定的委托对文本的类型和值进行编码。 | 
| TaggedScalar(CustomAttributeElementTypeEncoder, ScalarEncoder) | 返回一对编码器,必须使用它们按文本在参数列表中出现的顺序来对其类型和值进行编码。 | 
| TaggedVector(Action<CustomAttributeArrayTypeEncoder>, Action<VectorEncoder>) | 使用指定的委托对矢量文本的类型和项进行编码。 | 
| TaggedVector(CustomAttributeArrayTypeEncoder, VectorEncoder) | 返回一对编码器,必须使用它们按矢量文本在参数列表中出现的顺序来对其类型和项进行编码。 | 
| Vector() | 获取用于对矢量项进行编码的矢量编码器。 |