

Public Class CIMInternetServerConnection Inherits CIMInternetServerConnectionBase Implements System.ComponentModel.INotifyPropertyChanged, System.Xml.Serialization.IXmlSerializable
public class CIMInternetServerConnection : CIMInternetServerConnectionBase, System.ComponentModel.INotifyPropertyChanged, System.Xml.Serialization.IXmlSerializable
{
// 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);
}
System.Object
ArcGIS.Core.CIM.CIMObject
ArcGIS.Core.CIM.CIMServerConnection
ArcGIS.Core.CIM.CIMInternetServerConnectionBase
ArcGIS.Core.CIM.CIMInternetServerConnection
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)