Show / Hide Table of Contents

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
TargetVersions
.NET Standard 2.0100.6 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.6 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.6 - 100.15
iOS100.6 - 100.15
UWP100.6 - 200.0

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.

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.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0

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
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.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0
In This Article
Back to top Copyright © 2022 Esri.