SignedCms.RemoveSignature SignedCms.RemoveSignature SignedCms.RemoveSignature SignedCms.RemoveSignature Method

Definition

Removes the specified signature from the SignerInfos collection.

Overloads

RemoveSignature(Int32) RemoveSignature(Int32) RemoveSignature(Int32) RemoveSignature(Int32)

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

RemoveSignature(SignerInfo) RemoveSignature(SignerInfo) RemoveSignature(SignerInfo)

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

RemoveSignature(Int32) RemoveSignature(Int32) RemoveSignature(Int32) RemoveSignature(Int32)

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 Int32 Int32 Int32

The zero-based index of the signature to remove.

Exceptions

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.

RemoveSignature(SignerInfo) RemoveSignature(SignerInfo) RemoveSignature(SignerInfo)

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

Parameters

signerInfo
SignerInfo SignerInfo 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.

Applies to