Represents the connection information to one of the following types of service: ArcGIS Server (2D, 3D and image services), IMS, WMS and Bing (formerly Virtual Earth). The information stored by instances of this class are used by ServerLayer objects to make a connection to the specified service.

Namespace:  ESRI.ArcGISExplorer.Data

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public sealed class ServiceConnectionProperties
Visual Basic (Declaration)
Public NotInheritable Class ServiceConnectionProperties

Remarks

This class is only used by the ServiceLayer class in the Mapping namespace and is not used by any of the classes within the Data namespace.

A ServiceLayer can only be connected to a single data source, so some of the properties will always remain uninitialized for a particular ServiceType. For example, the SubServiceName property is only relevant when a ServiceLayer is being connected to an ArcGIS Server globe service, or a WMS service.

You cannot set the properties of a ServiceConnectionProperties object if it has been used to connect a layer and the IsConnected property is trueTruetruetrue (True in Visual Basic). If you want to reuse a ServiceConnectionProperties object to make a connection to a different data source Clone the object then optionally Clear the existing properties.

For services which require authentication, you can use the SetUserNamePassword method after the ServiceConnectionProperties object has been created.

Inheritance Hierarchy

System..::.Object

  ESRI.ArcGISExplorer.Data..::.ServiceConnectionProperties

See Also