ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Core.Data.Realtime Namespace / RealtimeServiceConnectionProperties Class
Members Example

In This Topic
    RealtimeServiceConnectionProperties Class
    In This Topic
    Represents the properties used to connect to a real-time service such as stream service.
    public sealed class RealtimeServiceConnectionProperties : ArcGIS.Core.Data.Connector 
    Public NotInheritable Class RealtimeServiceConnectionProperties 
       Inherits ArcGIS.Core.Data.Connector
    Connect to a real-time feature class from a real-time datastore
    var url = "";
    await QueuedTask.Run(() =>
      var realtimeServiceConProp = new RealtimeServiceConnectionProperties(
                                       new Uri(url),
      using (var realtimeDatastore = new RealtimeDatastore(realtimeServiceConProp))
        //A Realtime data store only contains **one** Realtime feature class (or table)
        var name = realtimeDatastore.GetTableNames().First();
        using (var realtimeFeatureClass = realtimeDatastore.OpenTable(name) as RealtimeFeatureClass)
          //feature class, by default, is not streaming (opposite of the stream layer)
          //TODO use the feature class
    Inheritance Hierarchy



    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also