Share via


_XDocument2.URI property

Gets the Uniform Resource Identifier (URI) of a form.

Namespace:  Microsoft.Office.Interop.InfoPath.SemiTrust
Assembly:  Microsoft.Office.Interop.InfoPath.SemiTrust (in Microsoft.Office.Interop.InfoPath.SemiTrust.dll)

Syntax

'Declaration
ReadOnly Property URI As String
    Get
'Usage
Dim instance As _XDocument2
Dim value As String

value = instance.URI
string URI { get; }

Property value

Type: System.String

Implements

_XDocument.URI

Remarks

The URI property can be used as the name of a form when accessed through the XDocumentsCollection collection.

Important

This member can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Examples

In the following example, the URI property of the XDocument object is used to display a form's URI in a message box:

thisXDocument.UI.Alert("URI:" + thisXDocument.URI);

See also

Reference

_XDocument2 interface

_XDocument2 members

URI overload

Microsoft.Office.Interop.InfoPath.SemiTrust namespace