次の方法で共有


_XDocument3.InputParameters プロパティ

/InputParameters コマンド ライン オプションを使用して、または URL のクエリ パラメータを使用して指定された入力パラメータを含む InputParameterCollection オブジェクトを取得します。

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

構文

'宣言
<DispIdAttribute(55)> _
ReadOnly Property InputParameters As InputParameterCollection
'使用
Dim instance As _XDocument3
Dim value As InputParameterCollection

value = instance.InputParameters
[DispIdAttribute(55)] 
InputParameterCollection InputParameters { get; }

プロパティ値

入力パラメータを含む InputParameterCollection オブジェクト。

コメント

入力パラメータは、アンパサンド (&) 文字で区切られた 1 つ以上の名前/値ペアで構成され、/InputParameters コマンドライン オプションを使用してコマンド ラインまたはバッチ ファイルからフォーム テンプレートが開かれるときに指定されます。入力パラメータは、フォーム テンプレートが URL から開かれるときにクエリ パラメータを使用して指定される場合もあります。

次の例では、次の構文を使用して、コマンド ラインから InfoPath フォーム テンプレートを開いています。

infopath.exe "C:\User Forms\DeptReport.xsn" /InputParameters "Dept=Accounting"

string vDept = (_XDocument3)thisXDocument.InputParameters["Dept"];
Dim vDept As String = 
   DirectCast(thisXDocument, _XDocument3).InputParameters("Dept")

関連項目

参照

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