VB2005:My.Application.Info

posted on 2005年9月14日 22:10 投稿者 Elfaria

アプリケーションの各種情報を取得します。
AssemblyInfo.vbやリソースなどに記録される情報や、
実行中のアプリケーションに関する情報を取得します

'アセンブリ名の取得
Dim strAsmName As String = My.Application.Info.AssemblyName

'会社名の取得
Dim strCompanyName As String = My.Application.Info.CompanyName

'Copyrightの取得
Dim strCopyright As String= My.Application.Info.Copyright

'アプリケーションの概要情報の取得
Dim strDescription As String = My.Application.Info.Description

'実行パスの取得
Dim strDirPath As String = My.Application.Info.DirectoryPath

'読み込まれているアセンブリの取得
Dim strLoadedAsms() As String = My.Application.Info.LoadedAssemblies()

'プロダクト名の取得
Dim strProductName As String = My.Application.Info.ProductName

'スタックトレースの取得
Dim strStackTrace As String = My.Application.Info.StackTrace

'アプリケーション名(タイトル)の取得
Dim strTitle As String = My.Application.Info.Title

'商標名の取得
Dim strTrademark As String = My.Application.Info.Trademark

'バージョン情報の取得
Dim strVersion As String = My.Application.Info.Version.ToString

'ワーキングセットの取得?(Gets the amount of physical memory mapped to the process context. )
Dim lngWrkSet As Long = My.Application.Info.WorkingSet

コメント