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

Write an Object Identifier with a specified tag.

public void WriteObjectIdentifier (ReadOnlySpan<char> oidValue, System.Formats.Asn1.Asn1Tag? tag = default);
member this.WriteObjectIdentifier : ReadOnlySpan<char> * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteObjectIdentifier (oidValue As ReadOnlySpan(Of Char), Optional tag As Nullable(Of Asn1Tag) = Nothing)

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- oidValue is not a valid dotted decimal object identifier.

Applies to

WriteObjectIdentifier(String, Nullable<Asn1Tag>)

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);
member this.WriteObjectIdentifier : string * Nullable<System.Formats.Asn1.Asn1Tag> -> unit
Public Sub WriteObjectIdentifier (oidValue As String, Optional tag As Nullable(Of Asn1Tag) = Nothing)

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- oidValue is not a valid dotted decimal object identifier.

oidValue is null.

Applies to