/InputParameters
コマンド ライン オプションを使用して、または URL のクエリ パラメータを使用して指定された入力パラメータを含む InputParameterCollection オブジェクトを取得します。
このプロパティは、CLS に準拠していません。
名前空間: Microsoft.Office.Interop.InfoPath.SemiTrust
アセンブリ: Microsoft.Office.Interop.InfoPath.SemiTrust (microsoft.office.interop.infopath.semitrust.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 から開かれるときにクエリ パラメータを使用して指定される場合もあります。
InputParameters プロパティは、Microsoft Office InfoPath 2007 の新しい機能なので、このプロパティにアクセスするには、宣言して _XDocument3 型にキャストする必要があります。詳細については、「[方法] InfoPath 2003 と互換性のない Microsoft.Office.Interop.InfoPath.SemiTrust のメンバを使用する方法」を参照してください。
このメンバは、現在開いているフォームと同じドメイン内で実行されているフォーム、またはドメインを越えたアクセス許可を付与されているフォームだけがアクセスできます。
例
次の例では、次の構文を使用して、コマンド ラインから 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.SemiTrust 名前空間