Gets or sets the Uri of the current System.Security.Cryptography.Xml.Reference.
a string
The Reference.Uri property uses a string Uniform Resource Identifier (URI) to represent the <URI> element of an XML digital signature.
Use the Reference.Uri property to specify the location of a document to sign, and to specify which element of the current XML document to sign or to indicate that the entire document should be signed.
To successfully create an XML digital signature, you must set the Reference.Uri property. The following table describes the values that you can pass to the Reference.Uri property.
| An entire XML document using an enveloped signature. |
An empty string: "" |
| A specific element within an XML document using an enveloped signature. |
The name of an XML element identified by an attribute name ID. The string should take the following form where IDname is the name of a valid attribute name ID: "#Idname" |
| A file using a detached signature. |
The URI of a file: "c:\data.jpg" or "c:\data.xml". |
For more information about XML digital signatures, see the World Wide Web Consortium (W3C) specification at www.w3.org/TR/xmldsig-core/.