layout: default title: PortalItem parent: Core Classes —
dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
PortalItem Class
An item (a unit of content) in the Portal. Each item has a unique identifier and a well known URL that is
independent of the user owning the item. An item may have associated binary or textual data which is available via
the item data resource. View the ArcGIS portal API REST documentation for the item for more details.
ArcGIS Maps SDK for JavaScript
public class PortalItem : dymaptic.GeoBlazor.Core.Components.MapComponent
Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 PortalItem
Properties
PortalItem.ApiKey Property
An authorization string used to access the portal item. API keys are generated and managed in the ArcGIS Developer
dashboard. An API key is tied explicitly to an ArcGIS account; it is also used to monitor service usage.
public string? ApiKey { get; set; }
Property Value
PortalItem.Id Property
The unique id for the item.
public string Id { get; set; }
Property Value
PortalItem.Portal Property
The portal that contains the item. It uses Portal.getDefault().
public dymaptic.GeoBlazor.Core.Components.Portal? Portal { get; set; }
Property Value
Methods
PortalItem.RegisterChildComponent(MapComponent) Method
Called from dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync to “Register” the current component with it’s parent.
public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The calling, child component to register
Returns
Exceptions
InvalidChildElementException
Throws if the current child is not a valid sub-component to the parent.
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method. If you see no other way to register a child component, please open an issue on GitHub.
PortalItem.UnregisterChildComponent(MapComponent) Method
Undoes the “Registration” of a child with its parent.
public override System.Threading.Tasks.Task UnregisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);
Parameters
child
MapComponent
The child to unregister
Returns
Remarks
This method is an implementation detail and should not be called directly by consumers. In future versions, this may be changed to an internal method.