Modifier

Partager via


SignedCms.RemoveSignature Method

Definition

Removes the specified signature from the SignerInfos collection.

Overloads

RemoveSignature(Int32)

Removes the signature at the specified index of the SignerInfos collection.

RemoveSignature(SignerInfo)

The RemoveSignature(SignerInfo) method removes the signature for the specified SignerInfo object.

RemoveSignature(Int32)

Source:
SignedCms.cs
Source:
SignedCms.cs
Source:
SignedCms.cs

Removes the signature at the specified index of the SignerInfos collection.

public:
 void RemoveSignature(int index);
public void RemoveSignature (int index);
member this.RemoveSignature : int -> unit
Public Sub RemoveSignature (index As Integer)

Parameters

index
Int32

The zero-based index of the signature to remove.

Exceptions

A CMS/PKCS #7 message is not signed, and index is invalid.

index is less than zero.

-or-

index is greater than the signature count minus 1.

The signature could not be removed.

-or-

An internal cryptographic error occurred.

Applies to

RemoveSignature(SignerInfo)

Source:
SignedCms.cs
Source:
SignedCms.cs
Source:
SignedCms.cs

The RemoveSignature(SignerInfo) method removes the signature for the specified SignerInfo object.

public:
 void RemoveSignature(System::Security::Cryptography::Pkcs::SignerInfo ^ signerInfo);
public void RemoveSignature (System.Security.Cryptography.Pkcs.SignerInfo signerInfo);
member this.RemoveSignature : System.Security.Cryptography.Pkcs.SignerInfo -> unit
Public Sub RemoveSignature (signerInfo As SignerInfo)

Parameters

signerInfo
SignerInfo

A SignerInfo object that represents the countersignature being removed.

Exceptions

A null reference was passed to a method that does not accept it as a valid argument.

The value of an argument was outside the allowable range of values as defined by the called method.

A cryptographic operation could not be completed.

Applies to