<PackageReference Include="System.Security.Cryptography.Pkcs" Version="11.0.0-preview.1.26104.118" />

System.Security.Cryptography.Pkcs.Pkcs9AttributeObject

Represents an attribute used for CMS/PKCS #7 and PKCS #9 operations.
public Oid Oid { get; }

Gets an Oid object that represents the type of attribute associated with this Pkcs9AttributeObject object.

Initializes a new instance of the Pkcs9AttributeObject class.

public Pkcs9AttributeObject(string oid, byte[] encodedData)

Initializes a new instance of the Pkcs9AttributeObject class using a specified string representation of an object identifier (OID) as the attribute type and a specified ASN.1 encoded data as the attribute value.

public Pkcs9AttributeObject(Oid oid, byte[] encodedData)

Initializes a new instance of the Pkcs9AttributeObject class using a specified Oid object as the attribute type and a specified ASN.1 encoded data as the attribute value.

public Pkcs9AttributeObject(AsnEncodedData asnEncodedData)

Initializes a new instance of the Pkcs9AttributeObject class using a specified AsnEncodedData object as its attribute type and value.