次の方法で共有


_XDocument3.ImportFile メソッド

現在のフォームに指定のフォームをインポートします。

名前空間: Microsoft.Office.Interop.InfoPath
アセンブリ: Microsoft.Office.Interop.InfoPath (microsoft.office.interop.infopath.dll 内)

構文

'宣言
<DispIdAttribute(20)> _
Sub ImportFile ( _
    <InAttribute> bstrFileURI As String _
)
'使用
Dim instance As _XDocument3
Dim bstrFileURI As String

instance.ImportFile(bstrFileURI)
[DispIdAttribute(20)] 
void ImportFile (
    [InAttribute] string bstrFileURI
)

パラメータ

  • bstrFileURI
    現在開かれているフォームにインポート (マージ) されるフォームの URI (Uniform Resource Identifier)。

コメント

このオブジェクト モデルを使用してフォームのインポートをプログラムで行うのは、ユーザー インターフェイスでマージ操作を実行するのと同じことです。

次の例では、XDocument オブジェクトの ImportFile メソッドを使用して、フォームをインポートしています。

thisXDocument.ImportFile(@"C:\SomeOtherForm.xml");

関連項目

参照

_XDocument3 インターフェイス
_XDocument3 のメンバ
Microsoft.Office.Interop.InfoPath 名前空間