Pkcs12SafeContents.AddNestedContents(Pkcs12SafeContents) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过新 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
参数传递的值所做的任何修改都不会影响此实例。