Share via


_Application3.GetSolutionURI method

Gets the Uniform Resource Locator (URL) or universal naming convention (UNC) location of a form template from the local cache ID.

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

Syntax

'Declaration
Function GetSolutionURI ( _
    bstrCacheID As String _
) As String
'Usage
Dim instance As _Application3
Dim bstrCacheID As String
Dim returnValue As String

returnValue = instance.GetSolutionURI(bstrCacheID)
string GetSolutionURI(
    string bstrCacheID
)

Parameters

  • bstrCacheID
    Type: System.String

    A string that identifies the form template in the local InfoPath form cache.

Return value

Type: System.String
The URL or UNC for the published location of the form template.

Remarks

The value to pass as the bstCacheID parameter can be identified from the following location in the file system:

%USERPROFILE%\Local Settings\Application Data\Microsoft\InfoPath\FormCache1\foldername\cacheID

Where foldername is a random name assigned in a user's form cache, and cacheID is the name of the folder that contains the cached form template and the cache ID value.

Examples

In the following example, a cache ID value is passed to the GetSolutionURI method to display the published location of the form template.

Microsoft.Office.Interop.InfoPath.Application app = 
   new Microsoft.Office.Interop.InfoPath.ApplicationClass();

MessageBox.Show(app.GetFormSolutionURI(
   "37d5ef02fa44a797$"));
Dim app As New Microsoft.Office.Interop.InfoPath.ApplicationClass
MessageBox.Show(app.GetFormSolutionURI( _
   "37d5ef02fa44a797$"))

See also

Reference

_Application3 interface

_Application3 members

Microsoft.Office.Interop.InfoPath namespace