<PackageReference Include="System.Security.Cryptography.Xml" Version="11.0.0-preview.2.26159.112" />

System.Security.Cryptography.Xml.KeyInfo

public class KeyInfo : IEnumerable
Represents an XML digital signature or XML encryption <KeyInfo> element.
public int Count { get; }

Gets the number of KeyInfoClause objects contained in the KeyInfo object.

public string Id { get; set; }

Gets or sets the key information identity.

public KeyInfo()

Initializes a new instance of the KeyInfo class.

public void AddClause(KeyInfoClause clause)

Adds a KeyInfoClause that represents a particular type of KeyInfo information to the KeyInfo object.

Returns an enumerator of the KeyInfoClause objects in the KeyInfo object.

public IEnumerator GetEnumerator(Type requestedObjectType)

Returns an enumerator of the KeyInfoClause objects of the specified type in the KeyInfo object.

public XmlElement GetXml()

Returns the XML representation of the KeyInfo object.

public void LoadXml(XmlElement value)

Loads a KeyInfo state from an XML element.