AsnWriter.WriteCharacterString Method
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.
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. |
- Source:
- AsnWriter.Text.cs
- Source:
- AsnWriter.Text.cs
- 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-
<code data-dev-comment-type="paramref">encodingType</code> is a restricted character string encoding type that is not
currently supported by this method.
Applies to
.NET 9 og aðrar útgáfur
Vara | Útgáfur |
---|---|
.NET | 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
- Source:
- AsnWriter.Text.cs
- Source:
- AsnWriter.Text.cs
- 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-
<code data-dev-comment-type="paramref">encodingType</code> is a restricted character string encoding type that is not
currently supported by this method.
Applies to
.NET 9 og aðrar útgáfur
Vara | Útgáfur |
---|---|
.NET | 5, 6, 7, 8 (package-provided), 8, 9 (package-provided), 9 |
.NET Framework | 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided) |
.NET Standard | 2.0 (package-provided) |
.NET umsögn
.NET er opið verkefni. Veldu tengil til að gefa umsögn: