ArcGIS Explorer Component Help |
ServiceLayer..::.OpenGlobeServer Method (Uri, String, String, String, String) |
ServiceLayer Class See Also |
Initializes a new ServiceLayer object and connects the layer to a secured ArcGIS Server 3D globe service.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)
Syntax
C# |
---|
public static ServiceLayer OpenGlobeServer( Uri url, string service, string subService, string username, string password ) |
Visual Basic (Declaration) |
---|
Public Shared Function OpenGlobeServer ( _ url As Uri, _ service As String, _ subService 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 globe service on the Internet.
- service
- Type: System..::.String
The name of the service.
- subService
- Type: System..::.String
The name of the sublayer of the service.
- username
- Type: System..::.String
The name of the user to connect to the service as.
- password
- Type: System..::.String
The password for the username.
Return Value
A ServiceLayer object connected to the specified secured ArcGIS Server 3D globe service.Remarks
Use this method to both instantiate a ServiceLayer and connect the layer to a secured ArcGIS Server 3D globe service.
In contrast to the Connect method, an exception will be thrown if the specified service cannot be accessed.
Exceptions
Exception | Condition |
---|---|
ESRI.ArcGISExplorer..::.ConnectionException | Connection failed. Check the Message and InnerException properties of the ConnectionException for more information about the reasons for the failure. |