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

System.Security.Cryptography.Xml.Reference

public class Reference
Represents the <reference> element of an XML signature.
public string DigestMethod { get; set; }

Gets or sets the digest method Uniform Resource Identifier (URI) of the current Reference.

public byte[] DigestValue { get; set; }

Gets or sets the digest value of the current Reference.

public string Id { get; set; }

Gets or sets the ID of the current Reference.

public TransformChain TransformChain { get; set; }

Gets the transform chain of the current Reference.

public string Type { get; set; }

Gets or sets the type of the object being signed.

public string Uri { get; set; }

Gets or sets the Uri of the current Reference.

public Reference()

Initializes a new instance of the Reference class with default properties.

public Reference(Stream stream)

Initializes a new instance of the Reference class with a hash value of the specified Stream.

public Reference(string uri)

Initializes a new instance of the Reference class with the specified Uri.

public void AddTransform(Transform transform)

Adds a Transform object to the list of transforms to be performed on the data before passing it to the digest algorithm.

public XmlElement GetXml()

Returns the XML representation of the Reference.

public void LoadXml(XmlElement value)

Loads a Reference state from an XML element.