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

Part 1 The Basic for Developing Application> Chapter 7 Shunsaku File> 7.2 Methods Used to Access Shunsaku File> 7.2.1 Per-connection Specification

7.2.1.2 Specifying with the .NET API

In this method, the Shunsaku File name is specified at the properties after creating the ShunService object.

mark1Sample Code for C# .NET

When the host name is "DirSvr1", the port number is "33101" and the Shunsaku File name is "fileA"

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

mark1Sample Code for VB .NET

When the host name is "DirSvr1", the port number is "33101" and the Shunsaku File name is "fileA"

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

This information can also be specified in the ShunService class constructor. Refer to the .NET API Reference for more information.

Contents Index PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2006