Constructor ArcGISSceneLayer
ArcGISSceneLayer(Uri)
Initializes a new instance of the ArcGISSceneLayer class with the specified URI.
Declaration
public ArcGISSceneLayer(Uri source)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | source | The endpoint of the scene service layer or the path to a scene layer package. |
Remarks
Use this constructor to create a ArcGISSceneLayer. Once the layer is created you will have to set the URI by using the Source property. This method exists to support XAML creation of a ArcGISSceneLayer.
It is recommended that you use the ArcGISSceneLayer(Uri) constructor for creating a layer with an associated URI.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException |
|
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.14 |
Relevant samples
Group layers: Group a collection of layers together and toggle their visibility as a group.
Scene layer selection: Identify features in a scene to select.
ArcGISSceneLayer(Item)
Initializes a new instance of the ArcGISSceneLayer class from the specified PortalItem.
Declaration
public ArcGISSceneLayer(Item item)
Parameters
| Type | Name | Description |
|---|---|---|
| Item | item | The PortalItem from which to create the layer. |
Remarks
The PortalItem will be accessible through the Item property.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.0 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 100.15 |