<PackageReference Include="System.Security.Cryptography.Pkcs" Version="11.0.0-preview.3.26207.106" />

System.Security.Cryptography.Pkcs.Pkcs12SecretBag

public sealed class Pkcs12SecretBag : Pkcs12SafeBag
Represents the SecretBag from PKCS#12, a container whose contents are arbitrary data with a type identifier. This class cannot be inherited.
public ReadOnlyMemory<byte> SecretValue { get; }

Gets a memory value containing the BER-encoded contents of the bag.

public Oid GetSecretType()

Gets the Object Identifier (OID) that identifies the data type of the secret value.