ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / StreamLayer Class / IsStreamingConnectionOpen Property
Example

In This Topic
    IsStreamingConnectionOpen Property
    In This Topic
    Gets whether this StreamLayer's streaming connection is open (started).
    Syntax
    Public ReadOnly Property IsStreamingConnectionOpen As Boolean
    public bool IsStreamingConnectionOpen {get;}
    Example
    Check the Stream Layer connection state
    {
      if (!streamLayer.IsStreamingConnectionOpen)
      // Note: call within QueuedTask.Run()
      {
        streamLayer.StartStreaming();
      }
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also