SignedCms.RemoveSignature Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- 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
- 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
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour