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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.6 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.6 - 200.6 |
Xamarin.Android | 100.6 - 100.15 |
Xamarin.iOS | 100.6 - 100.15 |
UWP | 100.6 - 200.6 |
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |