Share via


DSigSerializer.WriteReference(XmlWriter, Reference) Method

Definition

Writes the contents of a Reference as XML conforming to https://www.w3.org/TR/2001/PR-xmldsig-core-20010820/#sec-Reference.

public virtual void WriteReference (System.Xml.XmlWriter writer, Microsoft.IdentityModel.Xml.Reference reference);
abstract member WriteReference : System.Xml.XmlWriter * Microsoft.IdentityModel.Xml.Reference -> unit
override this.WriteReference : System.Xml.XmlWriter * Microsoft.IdentityModel.Xml.Reference -> unit
Public Overridable Sub WriteReference (writer As XmlWriter, reference As Reference)

Parameters

writer
XmlWriter

the XmlWriter to use.

reference
Reference

the Referenceto write.

Exceptions

if reference is null.

if one of the values in Transforms is null or empty.

Remarks

Assumes the <DigestValue> has been calculated, no canonicalization or digest calculation is performed.

Applies to