ArcGIS Pro 3.0 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, Windows 8.1

    See Also