ArcGIS Pro 3.3 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / StreamLayer Class / StartStreaming Method
Example

In This Topic
    StartStreaming Method (StreamLayer)
    In This Topic
    Sets the stream layer to a state where it starts listening to broadcasts from a real-time data source.
    Syntax
    public void StartStreaming()
    Public Sub StartStreaming() 
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    When you create a StreamLayer, it starts listening by default.
    Example
    Check the Stream Layer connection state
    if (!streamLayer.IsStreamingConnectionOpen)
      //Must be on QueuedTask!
      streamLayer.StartStreaming();
    
    Start and stop streaming
    //Must be on QueuedTask!
    //Start...
    streamLayer.StartStreaming();
    //Stop...
    streamLayer.StopStreaming();
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also