SignedCms 建構函式

定義

初始化 SignedCms 類別的新執行個體。

多載

SignedCms()

SignedCms() 建構函式會建立 SignedCms 類別的執行個體。

SignedCms(ContentInfo)

SignedCms(ContentInfo) 建構函式會使用指定的內容資訊做為內部內容,建立 SignedCms 類別的執行個體。

SignedCms(SubjectIdentifierType)

SignedCms(SubjectIdentifierType) 建構函式會藉由使用指定的主旨識別項型別做為簽署人的預設主旨識別項型別,建立 SignedCms 類別的執行個體。

SignedCms(ContentInfo, Boolean)

SignedCms(ContentInfo, Boolean) 建構函式會使用指定的內容資訊做為內部內容以及使用中斷連結狀態,建立 SignedCms 類別的執行個體。

SignedCms(SubjectIdentifierType, ContentInfo)

SignedCms(SubjectIdentifierType, ContentInfo) 建構函式會藉由使用指定的主旨識別項型別做為簽署人的預設主旨識別項型別,以及使用內容資訊做為內部內容,建立 SignedCms 類別的執行個體。

SignedCms(SubjectIdentifierType, ContentInfo, Boolean)

SignedCms(SubjectIdentifierType, ContentInfo, Boolean) 建構函式會藉由使用指定的主旨識別項型別做為簽署人的預設主旨識別項型別、使用內容資訊做為內部內容,以及使用中斷連結狀態,建立 SignedCms 類別的執行個體。

SignedCms()

來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs

SignedCms() 建構函式會建立 SignedCms 類別的執行個體。

public:
 SignedCms();
public SignedCms ();
Public Sub New ()

例外狀況

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

備註

類別 SignedCms 具有下列預設屬性值。

屬性 預設值
ContentInfo 1.2.840.113549.1.7.1 (數據) 長度:零
Detached 中斷鏈接狀態: false 已簽署的內容包含在 CMS/PKCS #7 訊息中,以及簽章資訊。

簽署者的預設值 SubjectIdentifierType 為 SubjectIdentifierType.IssuerAndSerialNumber。

如果中斷鏈接狀態 false (預設) ,則簽署的內容會包含在 CMS/PKCS #7 訊息中,以及簽章資訊。 如果中斷鏈接狀態為 true,則無法譯碼 S/MIME 訊息的用戶端在個別傳送訊息時仍可以看到訊息的內容。 這在封存應用程式中可能很有用,封存訊息內容是否可驗證訊息傳送者是否能夠驗證真確性。

適用於

SignedCms(ContentInfo)

來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs

SignedCms(ContentInfo) 建構函式會使用指定的內容資訊做為內部內容,建立 SignedCms 類別的執行個體。

public:
 SignedCms(System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo);
public SignedCms (System.Security.Cryptography.Pkcs.ContentInfo contentInfo);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (contentInfo As ContentInfo)

參數

contentInfo
ContentInfo

ContentInfo 物件,指定做為 SignedCms 訊息內部內容的內容資訊。

例外狀況

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

備註

如需與此建構函式搭配使用的預設屬性值,請參閱 SignedCms()

如果中斷鏈接狀態 false (預設) ,則簽署的內容會包含在 CMS/PKCS #7 訊息中,以及簽章資訊。 如果中斷鏈接狀態為 true,則無法譯碼 S/MIME 訊息的用戶端在個別傳送訊息時仍可以看到訊息的內容。 這在封存應用程式中可能很有用,封存訊息內容是否可驗證訊息傳送者是否能夠驗證真確性。

適用於

SignedCms(SubjectIdentifierType)

來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs

SignedCms(SubjectIdentifierType) 建構函式會藉由使用指定的主旨識別項型別做為簽署人的預設主旨識別項型別,建立 SignedCms 類別的執行個體。

public:
 SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType);
public SignedCms (System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType)

參數

signerIdentifierType
SubjectIdentifierType

SubjectIdentifierType 成員,其指定簽署人的預設主旨識別項型別。

例外狀況

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

備註

如需與此建構函式搭配使用的預設屬性值,請參閱 SignedCms()

如果中斷鏈接狀態 false (預設) ,則簽署的內容會包含在 CMS/PKCS #7 訊息中,以及簽章資訊。 如果中斷鏈接狀態為 true,則無法譯碼 S/MIME 訊息的用戶端在個別傳送訊息時仍可以看到訊息的內容。 這在封存應用程式中可能很有用,封存訊息內容是否可驗證訊息傳送者是否能夠驗證真確性。

適用於

SignedCms(ContentInfo, Boolean)

來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs

SignedCms(ContentInfo, Boolean) 建構函式會使用指定的內容資訊做為內部內容以及使用中斷連結狀態,建立 SignedCms 類別的執行個體。

public:
 SignedCms(System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo, bool detached);
public SignedCms (System.Security.Cryptography.Pkcs.ContentInfo contentInfo, bool detached);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.ContentInfo * bool -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (contentInfo As ContentInfo, detached As Boolean)

參數

contentInfo
ContentInfo

ContentInfo 物件,指定做為 SignedCms 訊息內部內容的內容資訊。

detached
Boolean

Boolean 值,指定 SignedCms 物件是否使用於中斷簽章。 如果 detachedtrue,則中斷簽章。 如果 detachedfalse,則不中斷簽章。

例外狀況

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

備註

如需與此建構函式搭配使用的預設屬性值,請參閱 SignedCms()

如果中斷鏈接狀態 false (預設) ,則簽署的內容會包含在 CMS/PKCS #7 訊息中,以及簽章資訊。 如果中斷鏈接狀態為 true,則無法譯碼 S/MIME 訊息的用戶端在個別傳送訊息時仍可以看到訊息的內容。 這在封存應用程式中可能很有用,封存訊息內容是否可驗證訊息傳送者是否能夠驗證真確性。

適用於

SignedCms(SubjectIdentifierType, ContentInfo)

來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs
來源:
SignedCms.CtorOverloads.cs

SignedCms(SubjectIdentifierType, ContentInfo) 建構函式會藉由使用指定的主旨識別項型別做為簽署人的預設主旨識別項型別,以及使用內容資訊做為內部內容,建立 SignedCms 類別的執行個體。

public:
 SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo);
public SignedCms (System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo contentInfo);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.Pkcs.ContentInfo -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType, contentInfo As ContentInfo)

參數

signerIdentifierType
SubjectIdentifierType

SubjectIdentifierType 成員,其指定簽署人的預設主旨識別項型別。

contentInfo
ContentInfo

ContentInfo 物件,指定做為 SignedCms 訊息內部內容的內容資訊。

例外狀況

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

備註

如需與此建構函式搭配使用的預設屬性值,請參閱 SignedCms()

如果中斷鏈接狀態 false (預設) ,則簽署的內容會包含在 CMS/PKCS #7 訊息中,以及簽章資訊。 如果中斷鏈接狀態為 true,則無法譯碼 S/MIME 訊息的用戶端在個別傳送訊息時仍可以看到訊息的內容。 這在封存應用程式中可能很有用,封存訊息內容是否可驗證訊息傳送者是否能夠驗證真確性。

適用於

SignedCms(SubjectIdentifierType, ContentInfo, Boolean)

來源:
SignedCms.cs
來源:
SignedCms.cs
來源:
SignedCms.cs

SignedCms(SubjectIdentifierType, ContentInfo, Boolean) 建構函式會藉由使用指定的主旨識別項型別做為簽署人的預設主旨識別項型別、使用內容資訊做為內部內容,以及使用中斷連結狀態,建立 SignedCms 類別的執行個體。

public:
 SignedCms(System::Security::Cryptography::Pkcs::SubjectIdentifierType signerIdentifierType, System::Security::Cryptography::Pkcs::ContentInfo ^ contentInfo, bool detached);
public SignedCms (System.Security.Cryptography.Pkcs.SubjectIdentifierType signerIdentifierType, System.Security.Cryptography.Pkcs.ContentInfo contentInfo, bool detached);
new System.Security.Cryptography.Pkcs.SignedCms : System.Security.Cryptography.Pkcs.SubjectIdentifierType * System.Security.Cryptography.Pkcs.ContentInfo * bool -> System.Security.Cryptography.Pkcs.SignedCms
Public Sub New (signerIdentifierType As SubjectIdentifierType, contentInfo As ContentInfo, detached As Boolean)

參數

signerIdentifierType
SubjectIdentifierType

SubjectIdentifierType 成員,其指定簽署人的預設主旨識別項型別。

contentInfo
ContentInfo

ContentInfo 物件,指定做為 SignedCms 訊息內部內容的內容資訊。

detached
Boolean

Boolean 值,指定 SignedCms 物件是否使用於中斷簽章。 如果 detachedtrue,則中斷簽章。 如果 detached 為 false,則不中斷簽章。

例外狀況

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

備註

如果中斷鏈接狀態 false (預設) ,則簽署的內容會包含在 CMS/PKCS #7 訊息中,以及簽章資訊。 如果中斷鏈接狀態為 true,則無法譯碼 S/MIME 訊息的用戶端在個別傳送訊息時仍可以看到訊息的內容。 這在封存應用程式中可能很有用,可封存訊息內容,無論訊息寄件者是否能夠驗證是否真確性。

適用於