次の方法で共有


Solution.Version プロパティ

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

このプロパティは、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 Solution
Dim value As String

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

コメント

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

メモ重要 :

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

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

関連項目

参照

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