SignedCms.RemoveSignature 方法

定义

SignerInfos 集合中删除指定的签名。

重载

名称 说明
RemoveSignature(Int32)

删除集合的指定索引处的 SignerInfos 签名。

RemoveSignature(SignerInfo)

该方法 RemoveSignature(SignerInfo) 删除指定 SignerInfo 对象的签名。

RemoveSignature(Int32)

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

删除集合的指定索引处的 SignerInfos 签名。

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

参数

index
Int32

要移除的签名的从零开始的索引。

例外

CMS/PKCS #7 消息未签名,无效 index

index 小于零。

-或-

index 大于签名计数减 1。

无法删除签名。

-或-

发生内部加密错误。

适用于

RemoveSignature(SignerInfo)

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

该方法 RemoveSignature(SignerInfo) 删除指定 SignerInfo 对象的签名。

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)

参数

signerInfo
SignerInfo

一个 SignerInfo 表示要移除的反签名的对象。

例外

空引用被传递给不接受该方法作为有效参数的方法。

参数的值超出了所调用方法定义的可允许值范围。

无法完成加密操作。

适用于