Pkcs12SafeContents.AddSafeBag(Pkcs12SafeBag) Method

Definition

Adds a SafeBag to the SafeContents.

public:
 void AddSafeBag(System::Security::Cryptography::Pkcs::Pkcs12SafeBag ^ safeBag);
public void AddSafeBag (System.Security.Cryptography.Pkcs.Pkcs12SafeBag safeBag);
member this.AddSafeBag : System.Security.Cryptography.Pkcs.Pkcs12SafeBag -> unit
Public Sub AddSafeBag (safeBag As Pkcs12SafeBag)

Parameters

safeBag
Pkcs12SafeBag

The SafeBag value to add.

Exceptions

The safeBag parameter is null.

This instance is read-only.

Remarks

Unlike the other methods that add a SafeBag to the SafeContents, this method adds the bag "live" and further modifications to the input parameter are reflected in the final encoded output.

Applies to