次の方法で共有


_Application2.Version プロパティ

Microsoft Office InfoPath 2007 のバージョン番号を取得します。

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

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

構文

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

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

コメント

アプリケーションのバージョン番号には、名前は含まれません。アプリケーションの名前を取得するには、Name プロパティを使用します。

フォーム テンプレートのバージョン番号を取得するには、Version プロパティを使用します。

メモ重要 :

このメンバは制限なしでアクセスできます。

次の例では、Application オブジェクトの Version プロパティを使用して、アプリケーションのバージョン番号をメッセージ ボックスに表示しています。

thisXDocument.UI.Alert("Application version: " + thisApplication.Version);

関連項目

参照

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