指定された Uniform Resource Locator (URL) にフォームを保存します。
名前空間: Microsoft.Office.Interop.InfoPath
アセンブリ: Microsoft.Office.Interop.InfoPath (microsoft.office.interop.infopath.dll 内)
構文
'宣言
<DispIdAttribute(2)> _
Sub SaveAs ( _
<InAttribute> bstrFileUrl As String _
)
'使用
Dim instance As _XDocument3
Dim bstrFileUrl As String
instance.SaveAs(bstrFileUrl)
[DispIdAttribute(2)]
void SaveAs (
[InAttribute] string bstrFileUrl
)
パラメータ
- bstrFileUrl
フォームの保存先となる URL アドレス。
コメント
SaveAs メソッドは、完全に信頼できるフォーム以外のフォームから呼び出された場合にはエラーを返します。
![]() |
---|
フォームの保存先となる URL は、SaveAs メソッドを呼び出すフォームと同じドメインである必要があります。 |
例
if(thisXDocument.IsNew)
{
thisXDocument.SaveAs("c:\\myforms\\form1.xml");
}
else
{
thisXDocument.Save();
}
関連項目
参照
_XDocument3 インターフェイス
_XDocument3 のメンバ
Microsoft.Office.Interop.InfoPath 名前空間