ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMInternetServerConnection Class
Members Example

In This Topic
    CIMInternetServerConnection Class
    In This Topic
    Represents an internet server connection.
    Object Model
    CIMInternetServerConnection ClassCIMInternetServerConnection ClassCIMInternetServerConnection Class
    Syntax
    Example
    Add a WMS service
    // Create a connection to the WMS server
    var serverConnection = new CIMInternetServerConnection { URL = "URL of the WMS service" };
    var connection = new CIMWMSServiceConnection { ServerConnection = serverConnection };
    
    // Add a new layer to the map
    var layerParams = new LayerCreationParams(connection);
    await QueuedTask.Run(() =>
    {
      var layer = LayerFactory.Instance.CreateLayer<FeatureLayer>(layerParams, MapView.Active.Map);
    });
    Inheritance Hierarchy

    System.Object
       ArcGIS.Core.CIM.CIMObject
          ArcGIS.Core.CIM.CIMServerConnection
             ArcGIS.Core.CIM.CIMInternetServerConnectionBase
                ArcGIS.Core.CIM.CIMInternetServerConnection

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also