Stdクラス Platformプロパティ
アドインプログラムが実行されているプラットホームを文字列で返します。本サイトロジーの場合は"CYTOLOGY"が返ります。
使用法
Dim instance As Std = New Std()
Dim returnValue As String
returnValue = instance.Platform()
使用例
'Stdクラス プロパティ Platform
Imports System.Windows.Forms
Public Class AddIn
Public Sub New()
Dim std As Std = New Std()
MessageBox.Show(std.Platform())
End Sub
End Class
使用例
AddIn_Startのボタンアクションを使用した場合の例は以下の通りになります。
'Stdクラス プロパティ Platform
Imports System.Windows.Forms
Public Class AddIn
Private std As Std = New Std()
Public Sub New()
std = New Std()
End Sub
Public Sub AddIn_Start()
MessageBox.Show(std.Platform())
End Sub
End Class
使用例
AddIn_Stopも使用して以下の様にも記述できます。
'Stdクラス プロパティ Platform
Imports System.Windows.Forms
Public Class AddIn
Private std As Std = New Std()
Public Sub AddIn_Start()
std = New Std()
MessageBox.Show(std.Platform())
End Sub
Public Sub AddIn_Stop()
std = Nothing
End Sub
End Class