LiteralEncoder 結構
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供編碼常值的方法。
public value class LiteralEncoder
public readonly struct LiteralEncoder
public struct LiteralEncoder
type LiteralEncoder = struct
Public Structure LiteralEncoder
- 繼承
建構函式
| 名稱 | Description |
|---|---|
| LiteralEncoder(BlobBuilder) |
提供編碼常值的方法。 |
屬性
| 名稱 | Description |
|---|---|
| Builder |
提供編碼常值的方法。 |
方法
| 名稱 | Description |
|---|---|
| Scalar() |
回傳用於編碼文字值的編碼器。 |
| TaggedScalar(Action<CustomAttributeElementTypeEncoder>, Action<ScalarEncoder>) |
使用指定的代理編碼字面值的型別與值。 |
| TaggedScalar(CustomAttributeElementTypeEncoder, ScalarEncoder) |
回傳一對編碼器,必須依照參數列表中字量的出現順序編碼字型與值。 |
| TaggedVector(Action<CustomAttributeArrayTypeEncoder>, Action<VectorEncoder>) |
使用指定的代理來編碼向量文字的型別與項目。 |
| TaggedVector(CustomAttributeArrayTypeEncoder, VectorEncoder) |
回傳一對編碼器,必須依照參數列表中的順序編碼向量文字的型別與項目。 |
| Vector() |
取得一個用來編碼向量項目的向量編碼器。 |