Sdílet prostřednictvím


_ExternalApplication.CacheSolution-Methode

Untersucht die Formularvorlage im Cache und aktualisiert sie ggf. von deren Veröffentlichungsort aus.

Namespace: Microsoft.Office.Interop.InfoPath
Assembly: Microsoft.Office.Interop.InfoPath (in microsoft.office.interop.infopath.dll)

Syntax

'Declaration
<DispIdAttribute(8)> _
Sub CacheSolution ( _
    <InAttribute> bstrSolutionURI As String _
)
'Usage
Dim instance As _ExternalApplication
Dim bstrSolutionURI As String

instance.CacheSolution(bstrSolutionURI)
[DispIdAttribute(8)] 
void CacheSolution (
    [InAttribute] string bstrSolutionURI
)

Parameter

  • bstrSolutionURI
    Der Zeichenfolgenwert, der den URI (Uniform Resource Identifier) der Formularvorlage angibt. Dieser Parameter kann als Formulardefinitionsdatei (XSF) oder als Formularvorlagendatei (XSN) angegeben werden.

Hinweise

Wenn die im Cache zurzeit enthaltene Formularvorlage der Formularvorlage am Veröffentlichungsort entspricht, erfolgt keine Zwischenspeicherung. Wenn sich der Computer im Offlinemodus befindet und das Formular bereits im Cache gespeichert ist, wird der Cache beibehalten und keine Aktualisierung vorgenommen.

Beispiel

Im folgenden in der Programmiersprache C# geschriebenen Beispiel dient die CacheSolution-Methode des ExternalApplication-Objekts zum Schreiben einer InfoPath-Formularvorlage in den Cache:

private void AutomateInfoPathForm()
{
ExternalApplication infoPath = new ExternalApplicationClass();

 // Cache an InfoPath form template.
infoPath.CacheSolution(@"\\MyServer\MyForms\MyForm.xsn");
}
HinweisHinweis:

Beim vorstehenden Beispiel wird davon ausgegangen, dass der Microsoft.Office.Interop.InfoPath-Namespace verwendet und auf die Microsoft InfoPath 2.0-Typbibliothek verwiesen wird.

Siehe auch

Referenz

_ExternalApplication-Schnittstelle
_ExternalApplication-Member
Microsoft.Office.Interop.InfoPath-Namespace