ArcGIS Pro 2.7 API Reference Guide
SetExpirationMethod Method (StreamLayer)

ArcGIS.Desktop.Mapping Namespace > StreamLayer Class : SetExpirationMethod Method
The ArcGIS.Core.CIM.FeatureExpirationMethod value indicates whether features will be expired or removed based on their age or feature count.
Sets the expiration method to the table. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public void SetExpirationMethod( 
   FeatureExpirationMethod featureExpirationMethod
)
Public Sub SetExpirationMethod( _
   ByVal featureExpirationMethod As FeatureExpirationMethod _
) 

Parameters

featureExpirationMethod
The ArcGIS.Core.CIM.FeatureExpirationMethod value indicates whether features will be expired or removed based on their age or feature count.
Exceptions
ExceptionDescription
This method or property must be called within the lambda passed to QueuedTask.Run.
Stream service data connection is null.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

StreamLayer Class
StreamLayer Members