Share via


_Application3.CacheSolution Method (String)

Examines the form template in the cache and, if necessary, updates it from the published location of the form template.

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

Syntax

'Declaration
Sub CacheSolution ( _
    bstrSolutionURI As String _
)
'Usage
Dim instance As _Application3
Dim bstrSolutionURI As String

instance.CacheSolution(bstrSolutionURI)
void CacheSolution(
    string bstrSolutionURI
)

Parameters

  • bstrSolutionURI
    Type: System.String

    Specifies the Uniform Resource Identifier (URI) of the form template. This parameter can be specified as a form definition (.xsf) file or a form template (.xsn) file.

Implements

_Application2.CacheSolution(String)

Remarks

If the form template that currently exists in the cache matches the form template from the published location, no caching takes place. If the computer is offline and the form is already in the cache, the cache is kept and no update will occur.

Examples

private string[] _forms = 
{ 
@"\\MyServer\MyForms\MyForm.xsn", 
@"\\MyServer\MyForms\manifest.xsf" 
};

private void someFunction()
{
…
CacheFormTemplate(_forms);
…
}

private void CacheFormTemplate(string[] forms)
{ 
 foreach (string form in forms)
 {
  thisApplication.CacheSolution(form);
 }
}

See Also

Reference

_Application3 Interface

_Application3 Members

CacheSolution Overload

Microsoft.Office.Interop.InfoPath Namespace