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.3 Specifying Host Name and Port Number by Constructor

This section explains how to specify and connect the host name and port number by constructor in ShunService class.

mark1Sample Code for C# .NET

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

ShunService service = new ShunService( "DirSvr1", 33101, null );
service.Connect();

mark1Sample Code for VB .NET

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

Dim service As New ShunService( "DirSvr1", 33101, Nothing )
service.Connect()

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006