ArcGIS Pro 3.7 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 Sub StopStreaming() 
    public void 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
    {
      // Note: call within QueuedTask.Run()
      {
        //Start...
        streamLayer.StartStreaming();
        //Stop...
        streamLayer.StopStreaming();
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also