ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.CIM Namespace / CIMStandardDataConnection Class / DatasetType Property

In This Topic
    DatasetType Property (CIMStandardDataConnection)
    In This Topic
    Gets or sets the dataset type.
    public esriDatasetType DatasetType {get; set;}
    Public Property DatasetType As esriDatasetType
    Add a WFS Service
    CIMStandardDataConnection cIMStandardDataConnection = new CIMStandardDataConnection()
      WorkspaceConnectionString = @"SWAPXY=TRUE;SWAPXYFILTER=FALSE;URL=;VERSION=2.0.0",
      WorkspaceFactory = WorkspaceFactory.WFS,
      Dataset = "Continent",
      DatasetType = esriDatasetType.esriDTFeatureClass
    // Add a new layer to the map
    var layerPamsDC = new LayerCreationParams(cIMStandardDataConnection);
    await QueuedTask.Run(() =>
      Layer layer = LayerFactory.Instance.CreateLayer<FeatureLayer>(layerPamsDC, MapView.Active.Map);

    Target Platforms: Windows 11, Windows 10, Windows 8.1

    See Also