AsnWriter.WriteCharacterString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteCharacterString(UniversalTagNumber, String, Nullable<Asn1Tag>) |
Write the provided string using the specified encoding type using the specified tag corresponding to the encoding type. |
WriteCharacterString(UniversalTagNumber, ReadOnlySpan<Char>, Nullable<Asn1Tag>) |
Write the provided string using the specified encoding type using the specified tag corresponding to the encoding type. |
WriteCharacterString(UniversalTagNumber, String, Nullable<Asn1Tag>)
- Source:
- AsnWriter.Text.cs
- Source:
- AsnWriter.Text.cs
- Source:
- AsnWriter.Text.cs
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)
Parameters
- encodingType
- UniversalTagNumber
One of the enumeration values representing the encoding to use.
- value
- String
The string to write.
The tag to write, or null
for the universal tag that is appropriate to the requested encoding type.
Exceptions
value
is null
encodingType
is not a restricted character string encoding type.
-or-
encodingType
is a restricted character string encoding type that is not currently supported by this method.
Applies to
WriteCharacterString(UniversalTagNumber, ReadOnlySpan<Char>, Nullable<Asn1Tag>)
- Source:
- AsnWriter.Text.cs
- Source:
- AsnWriter.Text.cs
- Source:
- AsnWriter.Text.cs
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)
Parameters
- encodingType
- UniversalTagNumber
One of the enumeration values representing the encoding to use.
- str
- ReadOnlySpan<Char>
The string to write.
The tag to write, or null
for the universal tag that is appropriate to the requested encoding type.
Exceptions
encodingType
is not a restricted character string encoding type.
-or-
encodingType
is a restricted character string encoding type that is not currently supported by this method.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor