ArcGIS Pro 3.7 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);
        //Note: Needs QueuedTask to run
        var layerCreated = 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 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also