Edit

Share via


Pkcs12SafeContents.AddNestedContents(Pkcs12SafeContents) Method

Definition

Adds a nested SafeContents to the SafeContents via a new Pkcs12SafeContentsBag and returns the newly created bag instance.

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

Parameters

safeContents
Pkcs12SafeContents

The nested contents to add to the SafeContents.

Returns

The bag instance which was added to the SafeContents.

Exceptions

The safeContents parameter is null.

The safeContents parameter is encrypted.

This instance is read-only.

Remarks

This method processes the contents of the safeContents parameter into a new read-only instance. Any modifications to the value passed as the safeContents parameter after this method is called will have no effect on this instance.

Applies to