Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RemoveSignature Method (Int32)
Collapse the table of content
Expand the table of content

SignedCms.RemoveSignature Method (Int32)

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

Namespace:  System.Security.Cryptography.Pkcs
Assembly:  System.Security (in System.Security.dll)

public void RemoveSignature(
	int index
)

Parameters

index
Type: System.Int32

The zero-based index of the signature to remove.

ExceptionCondition
InvalidOperationException

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

ArgumentOutOfRangeException

index is less than zero.

-or-

index is greater than the signature count minus 1.

CryptographicException

The signature could not be removed.

-or-

An internal cryptographic error occurred.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft