<PackageReference Include="System.Security.Cryptography.Xml" Version="10.0.9" />

System.Security.Cryptography.Xml.EncryptedKey

public sealed class EncryptedKey : EncryptedType
Represents the <EncryptedKey> element in XML encryption. This class cannot be inherited.
public string CarriedKeyName { get; set; }

Gets or sets the optional <CarriedKeyName> element in XML encryption.

public string Recipient { get; set; }

Gets or sets the optional Recipient attribute in XML encryption.

public ReferenceList ReferenceList { get; }

Gets or sets the <ReferenceList> element in XML encryption.

public EncryptedKey()

Initializes a new instance of the EncryptedKey class.

public void AddReference(DataReference dataReference)

Adds a <DataReference> element to the <ReferenceList> element.

public void AddReference(KeyReference keyReference)

Adds a <KeyReference> element to the <ReferenceList> element.