public void SetExpirationMaxCount( ulong expirationMaxCount )
Public Sub SetExpirationMaxCount( _ ByVal expirationMaxCount As ULong _ )
Parameters
- expirationMaxCount
- The values indicating how many features will be stored at any given time.
public void SetExpirationMaxCount( ulong expirationMaxCount )
Public Sub SetExpirationMaxCount( _ ByVal expirationMaxCount As ULong _ )
Exception | Description |
---|---|
ArcGIS.Core.CalledOnWrongThreadException | This method or property must be called within the lambda passed to QueuedTask.Run. |
System.InvalidOperationException | Stream service data connection is null. |
When a stream layer is track-aware, use FeatureLayer.SetPreviousObservationsCount to set how many will be displayed on the map. Whereas SetExpirationMaxCount defines how many previous observation will be stored in memory.
//Must be on QueuedTask //Set Expiration Method and Max Expiration Count if (streamLayer.GetExpirationMethod() != FeatureExpirationMethod.MaximumFeatureCount) streamLayer.SetExpirationMethod(FeatureExpirationMethod.MaximumFeatureCount); streamLayer.SetExpirationMaxCount(15); //FYI if (streamLayer.IsTrackAware) { //MaxCount is per track! otherwise for the entire layer }
Target Platforms: Windows 10, Windows 8.1