Pkcs12SafeBag.Encode Method

Definition

Encodes the SafeBag value and returns it as a byte array.

C#
public byte[] Encode();

Returns

Byte[]

A byte array representing the encoded form of the SafeBag.

Exceptions

The object identifier value passed to the constructor was invalid.

Applies to

Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Standard 2.1 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10