ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer
FromResourceUrl Method
See Also  Send Feedback
ESRI.ArcGIS.ADF.Web.DataSources.ArcGISServer Namespace > GISDataSourceInternet Class : FromResourceUrl Method




resourceUrl
Full URL to the GIS resource, e.g., http://myserver/arcgis/services/MyGISService/MapServer.
server
Output parameter: server name or IP address. Includes service folder, if present.
service
Output parameter: service name.
soType
Service type, e.g., MapServer or GeocodeServer.
Parses the server, service name and service type from the GIS resource URL.

Syntax

Visual Basic (Declaration) 
Public Shared Sub FromResourceUrl( _
   ByVal resourceUrl As String, _
   ByRef server As String, _
   ByRef service As String, _
   ByRef soType As String _
) 
Visual Basic (Usage)Copy Code
Dim resourceUrl As String
Dim server As String
Dim service As String
Dim soType As String
 
GISDataSourceInternet.FromResourceUrl(resourceUrl, server, service, soType)
C# 
public static void FromResourceUrl( 
   string resourceUrl,
   out string server,
   out string service,
   out string soType
)

Parameters

resourceUrl
Full URL to the GIS resource, e.g., http://myserver/arcgis/services/MyGISService/MapServer.
server
Output parameter: server name or IP address. Includes service folder, if present.
service
Output parameter: service name.
soType
Service type, e.g., MapServer or GeocodeServer.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2011 All Rights Reserved.