public FeatureExpirationMethod GetExpirationMethod()
Public Function GetExpirationMethod() As FeatureExpirationMethod
public FeatureExpirationMethod GetExpirationMethod()
Public Function GetExpirationMethod() As FeatureExpirationMethod
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. |
//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 }
//Must be on QueuedTask //Set Expiration Method and Max Expiration Age if (streamLayer.GetExpirationMethod() != FeatureExpirationMethod.MaximumFeatureAge) streamLayer.SetExpirationMethod(FeatureExpirationMethod.MaximumFeatureAge); //set to 12 hours (max is 24 hours) streamLayer.SetExpirationMaxAge(new TimeSpan(12,0,0)); //FYI if (streamLayer.IsTrackAware) { //MaxAge is per track! otherwise for the entire layer }
Target Platforms: Windows 11, Windows 10, Windows 8.1