Show / Hide Table of Contents

Constructor PortalItem

PortalItem(ArcGISPortal, PortalItemType)

Initializes a new instance of the PortalItem class 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

Use this constructor to create a new item to add to a portal.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.6 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.6 - 200.7
Xamarin.Android100.6 - 100.15
Xamarin.iOS100.6 - 100.15
UWP100.6 - 200.7

PortalItem(ArcGISPortal, PortalItemType, String)

Initializes a new instance of the PortalItem class 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
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7

PortalItem(String, ArcGISPortal)

Initializes a new instance of the PortalItem class 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
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
In This Article
Back to top Copyright © 2022 Esri.