Initializes a new ServiceLayer object and connects the layer to a secured ArcIMS service.

Namespace:  ESRI.ArcGISExplorer.Mapping
Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)

Syntax

C#
public static ServiceLayer OpenIms(
	Uri url,
	string serviceName,
	string username,
	string password
)
Visual Basic (Declaration)
Public Shared Function OpenIms ( _
	url As Uri, _
	serviceName As String, _
	username As String, _
	password As String _
) As ServiceLayer

Parameters

url
Type: System..::.Uri
A Uri object which represents a Uniform Resource Identifier and consists of a string used to identify the ArcIMS service on the Internet.
serviceName
Type: System..::.String
The name of the service.
username
Type: System..::.String
The name of the user.
password
Type: System..::.String
The password for the username.

Return Value

A ServiceLayer object connected to the specified ArcIMS service.

Remarks

Use this method to both instantiate a ServiceLayer and connect the layer to a secured ArcIMS service. In contrast to the Connect method, an exception will be thrown if the specified service cannot be accessed.

See Also

Relate Topics:
  OpenIms Method (Uri, String)
Created by Atop CHM to web converter,© 2009 all right reserved.