Share via


Solution2.URI Property

Gets the Uniform Resource Identifier (URI) of an Microsoft InfoPath 2010 form template.

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 Solution2
Dim value As String

value = instance.URI
string URI { get; }

Property Value

Type: System.String

Implements

Solution.URI

Remarks

The URI property can take the form of a Uniform Resource Locator (URL) or Uniform Resource Name (URN), depending on the location from which the form was opened.

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 SolutionObject object is used to display a form template's URI in a message box:

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

See Also

Reference

Solution2 Interface

Solution2 Members

URI Overload

Microsoft.Office.Interop.InfoPath.SemiTrust Namespace