Editare

Partajați prin


SignerInfo.AddUnsignedAttribute(AsnEncodedData) Method

Definition

Adds the specified attribute to the current document.

public:
 void AddUnsignedAttribute(System::Security::Cryptography::AsnEncodedData ^ unsignedAttribute);
public:
 void AddUnsignedAttribute(System::Security::Cryptography::AsnEncodedData ^ asnEncodedData);
public void AddUnsignedAttribute (System.Security.Cryptography.AsnEncodedData unsignedAttribute);
public void AddUnsignedAttribute (System.Security.Cryptography.AsnEncodedData asnEncodedData);
member this.AddUnsignedAttribute : System.Security.Cryptography.AsnEncodedData -> unit
member this.AddUnsignedAttribute : System.Security.Cryptography.AsnEncodedData -> unit
Public Sub AddUnsignedAttribute (unsignedAttribute As AsnEncodedData)
Public Sub AddUnsignedAttribute (asnEncodedData As AsnEncodedData)

Parameters

unsignedAttributeasnEncodedData
AsnEncodedData

The ASN.1 encoded attribute to add to the document.

Exceptions

Cannot find the original signer.

-or-

ASN1 corrupted data.

Remarks

If the specified attribute already exists in the document, it is merged with the existing one.

The document is re-encoded after the addition.

Applies to