Interstage Shunsaku Data Manager Application Development Guide - Microsoft(R) Windows(R) 2000/ Microsoft(R) Windows Server(TM) 2003 - - UNIX -
Contents Index PreviousNext

Part 2 Developing Applications by APIs> Chapter 10 Developing .NET Applications> 10.3 How to Use .NET APIs> 10.3.1 Establishing a Connection

10.3.1.2 Specifying Host Name and Port Number by Properties

This section explains how to specify and connect the host name and port number by properties.

mark1Sample Code for C# .NET

When the host name is 'DirSvr1' and the port number is '33101'

ShunService service = new ShunService();
service.Host = "DirSvr1";
service.Port = 33101;
service.Connect();

mark1Sample Code for VB .NET

When the host name is 'DirSvr1' and the port number is '33101'

Dim service As New ShunService()
service.Host = "DirSvr1"
service.Port = 33101
service.Connect()

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006