public enum SceneLayerDataSourceType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum SceneLayerDataSourceType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
public enum SceneLayerDataSourceType : System.Enum, System.IComparable, System.IConvertible, System.IFormattable
Public Enum SceneLayerDataSourceType Inherits System.Enum Implements System.IComparable, System.IConvertible, System.IFormattable
Member | Description |
---|---|
Service | The data source is a scene service. |
SLPK | The data source is an slpk file. |
Unknown | The data source is unknown. |
//Must be called on the MCT var dataSourceType = featSceneLayer?.GetDataSourceType() ?? SceneLayerDataSourceType.Unknown; if (dataSourceType == SceneLayerDataSourceType.SLPK) { //Uses SLPK - only cached attributes } else if (dataSourceType == SceneLayerDataSourceType.Service) { //Hosted service - can have live attributes - check HasAssociatedFeatureService }
//var pcsl = ...; //At 2.x - ISceneLayerInfo slInfo = pcsl as ISceneLayerInfo; // SceneLayerDataSourceType dataSourceType = slInfo.GetDataSourceType(); SceneLayerDataSourceType dataSourceType = pcsl.GetDataSourceType(); if (dataSourceType == SceneLayerDataSourceType.Service) { //TODO... } else if (dataSourceType == SceneLayerDataSourceType.SLPK) { }
System.Object
System.ValueType
System.Enum
ArcGIS.Desktop.Mapping.SceneLayerDataSourceType
Target Platforms: Windows 11, Windows 10