Pkcs12SafeContents.AddNestedContents(Pkcs12SafeContents) 方法

定义

通过新 Pkcs12SafeContentsBag 将嵌套 SafeContents 添加到 SafeContents,并返回新创建的包实例。

public:
 System::Security::Cryptography::Pkcs::Pkcs12SafeContentsBag ^ AddNestedContents(System::Security::Cryptography::Pkcs::Pkcs12SafeContents ^ safeContents);
public System.Security.Cryptography.Pkcs.Pkcs12SafeContentsBag AddNestedContents (System.Security.Cryptography.Pkcs.Pkcs12SafeContents safeContents);
member this.AddNestedContents : System.Security.Cryptography.Pkcs.Pkcs12SafeContents -> System.Security.Cryptography.Pkcs.Pkcs12SafeContentsBag
Public Function AddNestedContents (safeContents As Pkcs12SafeContents) As Pkcs12SafeContentsBag

参数

safeContents
Pkcs12SafeContents

要添加到 SafeContents 中的嵌套内容。

返回

已添加到 SafeContents 的包实例。

例外

safeContents 参数为 null

safeContents 参数经过加密。

此实例为只读。

注解

此方法将 参数的内容 safeContents 处理到新的只读实例中。 调用此方法后,对作为 safeContents 参数传递的值所做的任何修改都不会影响此实例。

适用于