AsnWriter.WriteCharacterString Método
Definição
Sobrecargas
| WriteCharacterString(UniversalTagNumber, String, Nullable<Asn1Tag>) |
Grava a cadeia de caracteres fornecida usando o tipo de codificação especificado usando a marca especificada correspondente ao tipo de codificação.Write the provided string using the specified encoding type using the specified tag corresponding to the encoding type. |
| WriteCharacterString(UniversalTagNumber, ReadOnlySpan<Char>, Nullable<Asn1Tag>) |
Grava a cadeia de caracteres fornecida usando o tipo de codificação especificado usando a marca especificada correspondente ao tipo de codificação.Write the provided string using the specified encoding type using the specified tag corresponding to the encoding type. |
WriteCharacterString(UniversalTagNumber, String, Nullable<Asn1Tag>)
Grava a cadeia de caracteres fornecida usando o tipo de codificação especificado usando a marca especificada correspondente ao tipo de codificação.Write the provided string using the specified encoding type using the specified tag corresponding to the encoding type.
public void WriteCharacterString (System.Formats.Asn1.UniversalTagNumber encodingType, string value, System.Formats.Asn1.Asn1Tag? tag = default);
member this.WriteCharacterString : System.Formats.Asn1.UniversalTagNumber * string * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteCharacterString (encodingType As UniversalTagNumber, value As String, Optional tag As Nullable(Of Asn1Tag) = Nothing)
Parâmetros
- encodingType
- UniversalTagNumber
Um dos valores de enumeração que representa a codificação a ser usada.One of the enumeration values representing the encoding to use.
- value
- String
A cadeia de caracteres a ser gravada.The string to write.
A marca a ser gravada ou null para a marca universal apropriada para o tipo de codificação solicitado.The tag to write, or null for the universal tag that is appropriate to the requested encoding type.
Exceções
value é nullvalue is null
encodingType não é um tipo de codificação de cadeia de caracteres restrito.encodingType is not a restricted character string encoding type.
-ou- encodingType é um tipo de codificação de cadeia de caracteres restrito sem suporte atualmente por este método.-or- encodingType is a restricted character string encoding type that is not currently supported by this method.
tag.TagClasstag.TagClass é Universal, mas tag.TagValueis Universal, but tag.TagValue não está correto para o método.is not correct for the method.
Aplica-se a
WriteCharacterString(UniversalTagNumber, ReadOnlySpan<Char>, Nullable<Asn1Tag>)
Grava a cadeia de caracteres fornecida usando o tipo de codificação especificado usando a marca especificada correspondente ao tipo de codificação.Write the provided string using the specified encoding type using the specified tag corresponding to the encoding type.
public void WriteCharacterString (System.Formats.Asn1.UniversalTagNumber encodingType, ReadOnlySpan<char> str, System.Formats.Asn1.Asn1Tag? tag = default);
member this.WriteCharacterString : System.Formats.Asn1.UniversalTagNumber * ReadOnlySpan<char> * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteCharacterString (encodingType As UniversalTagNumber, str As ReadOnlySpan(Of Char), Optional tag As Nullable(Of Asn1Tag) = Nothing)
Parâmetros
- encodingType
- UniversalTagNumber
Um dos valores de enumeração que representa a codificação a ser usada.One of the enumeration values representing the encoding to use.
- str
- ReadOnlySpan<Char>
A cadeia de caracteres a ser gravada.The string to write.
A marca a ser gravada ou null para a marca universal apropriada para o tipo de codificação solicitado.The tag to write, or null for the universal tag that is appropriate to the requested encoding type.
Exceções
encodingType não é um tipo de codificação de cadeia de caracteres restrito.encodingType is not a restricted character string encoding type.
-ou- encodingType é um tipo de codificação de cadeia de caracteres restrito sem suporte atualmente por este método.-or- encodingType is a restricted character string encoding type that is not currently supported by this method.
tag.TagClasstag.TagClass é Universal, mas tag.TagValueis Universal, but tag.TagValue não está correto para o método.is not correct for the method.