SignedCms.RemoveSignature 方法

定義

SignerInfos 集合移除指定的簽章。

多載

RemoveSignature(Int32)

移除 SignerInfos 集合中指定索引處的簽章。

RemoveSignature(SignerInfo)

RemoveSignature(SignerInfo) 方法會移除指定之 SignerInfo 物件的簽章。

RemoveSignature(Int32)

移除 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)

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 物件,代表已移除副署。

例外狀況

Null 參考已傳遞至不接受它做為有效引數的方法。

引數值超出呼叫方法所定義值的容許範圍。

密碼編譯作業無法完成。

適用於