AsnWriter.WriteObjectIdentifier Method

Definition

Overloads

WriteObjectIdentifier(ReadOnlySpan<Char>, Nullable<Asn1Tag>)

Write an Object Identifier with a specified tag.

WriteObjectIdentifier(String, Nullable<Asn1Tag>)

Write an Object Identifier with a specified tag.

WriteObjectIdentifier(ReadOnlySpan<Char>, Nullable<Asn1Tag>)

Source:
AsnWriter.Oid.cs
Source:
AsnWriter.Oid.cs
Source:
AsnWriter.Oid.cs
Source:
AsnWriter.Oid.cs
Source:
AsnWriter.Oid.cs

Write an Object Identifier with a specified tag.

public void WriteObjectIdentifier (ReadOnlySpan<char> oidValue, System.Formats.Asn1.Asn1Tag? tag = default);

Parameters

oidValue
ReadOnlySpan<Char>

The object identifier to write.

tag
Nullable<Asn1Tag>

The tag to write, or null for the default tag (Universal 6).

Exceptions

tag.TagClass is Universal, but tag.TagValue is not correct for the method.

 -or-

 <code data-dev-comment-type="paramref">oidValue</code> is not a valid dotted decimal
 object identifier.

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)

WriteObjectIdentifier(String, Nullable<Asn1Tag>)

Source:
AsnWriter.Oid.cs
Source:
AsnWriter.Oid.cs
Source:
AsnWriter.Oid.cs
Source:
AsnWriter.Oid.cs
Source:
AsnWriter.Oid.cs

Write an Object Identifier with a specified tag.

public void WriteObjectIdentifier (string oidValue, System.Formats.Asn1.Asn1Tag? tag = default);

Parameters

oidValue
String

The object identifier to write.

tag
Nullable<Asn1Tag>

The tag to write, or null for the default tag (Universal 6).

Exceptions

tag.TagClass is Universal, but tag.TagValue is not correct for the method.

 -or-

 <code data-dev-comment-type="paramref">oidValue</code> is not a valid dotted decimal
 object identifier.

oidValue is null.

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)