ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / StreamLayer Class / StopStreaming Method
Example

In This Topic
    StopStreaming Method (StreamLayer)
    In This Topic
    Stops listening to streams from a real-time data source.
    Syntax
    public void StopStreaming()
    Public Sub StopStreaming() 
    Exceptions
    ExceptionDescription
    This method or property must be called within the lambda passed to QueuedTask.Run.
    Remarks
    You can still access all features that are so far accumulated and have not expired yet.
    Example
    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