C# .NETの記述例
ShunService service = new ShunService(); service.Connect();
VB .NETの記述例
Dim service As New ShunService () service.Connect()
参照
API用動作環境ファイルの設定の詳細については、“2.4 動作環境ファイルの設定”を参照してください。
ホスト名とポート番号をプロパティで指定して、接続する方法について説明します。
C# .NETの記述例
ホスト名“DirSvr1”、ポート番号“23101”の場合
ShunService service = new ShunService(); service.Host = "DirSvr1"; service.Port = 23101; service.Connect();
VB .NETの記述例
ホスト名“DirSvr1”、ポート番号“23101”の場合
Dim service As New ShunService() service.Host = "DirSvr1" service.Port = 23101 service.Connect()
ホスト名とポート番号をShunServiceクラスのコンストラクタで指定して、接続する方法について説明します。
C# .NETの記述例
ホスト名“DirSvr1”、ポート番号“23101”の場合
ShunService service = new ShunService( "DirSvr1", 23101, null ); service.Connect();
VB .NETの記述例
ホスト名“DirSvr1”、ポート番号“23101”の場合
Dim service As New ShunService( "DirSvr1", 23101, Nothing ) service.Connect()