Constructor PortalItem
PortalItem(ArcGISPortal, PortalItemType)
Initializes a new instance of the PortalItem class. Creates a new portal item object with the specified type for the specified portal.
Declaration
public PortalItem(ArcGISPortal portal, PortalItemType type)
Parameters
| Type | Name | Description |
|---|---|---|
| ArcGISPortal | portal | The ArcGIS portal. |
| PortalItemType | type | The content type of the new portal item. |
Remarks
This constructor is used if you wish to create a new item that you will add to a portal.
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.6 - 100.15 |
| .NET 6.0 | 100.13 - 100.15 |
| .NET 6.0 Windows | 100.13 - 100.15 |
| .NET Framework | 100.6 - 100.15 |
| .NET 5 | 100.10 - 100.12 |
| .NET Core 3.1 | 100.7 - 100.12 |
| Xamarin.Android | 100.6 - 100.15 |
| Xamarin.iOS | 100.6 - 100.15 |
| UWP | 100.6 - 100.15 |
PortalItem(ArcGISPortal, PortalItemType, String)
Initializes a new instance of the PortalItem class. Creates a new portal item object with the specified type and title for the specified portal.
Declaration
public PortalItem(ArcGISPortal portal, PortalItemType type, string title)
Parameters
| Type | Name | Description |
|---|---|---|
| ArcGISPortal | portal | The ArcGIS portal. |
| PortalItemType | type | The type of the new portal item. |
| System.String | title | The title of the new portal item. |
Remarks
This constructor is used if you wish to create a new item that you will add to a portal. For initializing an instance from an existing item use the CreateAsync(ArcGISPortal, String) static factory.
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 |
PortalItem(String, ArcGISPortal)
Initializes a new instance of the PortalItem class. Creates a portal item object from a JSON string and a portal.
Declaration
public PortalItem(string json, ArcGISPortal portal)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | json | The JSON representation of the portal item. |
| ArcGISPortal | portal | The portal. |
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 |