次の方法で共有


Solution2.Version プロパティ

Microsoft Office InfoPath 2007 フォーム テンプレートのバージョン番号を取得します。

このプロパティは、CLS に準拠していません。  

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

構文

'宣言
<DispIdAttribute(3)> _
ReadOnly Property Version As String
'使用
Dim instance As Solution2
Dim value As String

value = instance.Version
[DispIdAttribute(3)] 
string Version { get; }

コメント

InfoPath アプリケーションのバージョン番号を取得するには、Version を使用します。

メモ重要 :

このメンバは、現在開いているフォームと同じドメイン内で実行されているフォーム、またはドメインを越えたアクセス許可を付与されているフォームだけがアクセスできます。

thisXDocument.UI.Alert("Version: " + thisXDocument.Solution.Version);

関連項目

参照

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