dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Model

PortalItemResource Class

A reference to a portal item resource. ArcGIS Maps SDK for JavaScript

public record PortalItemResource : dymaptic.GeoBlazor.Core.Interfaces.IInteractiveRecord, System.IEquatable<dymaptic.GeoBlazor.Core.Model.PortalItemResource>

Inheritance System.Object 🡒 PortalItemResource

Implements IInteractiveRecord, System.IEquatable<PortalItemResource>

Constructors

PortalItemResource(string, PortalItem) Constructor

A reference to a portal item resource. ArcGIS Maps SDK for JavaScript

public PortalItemResource(string? Path=null, dymaptic.GeoBlazor.Core.Components.PortalItem? PortalItem=null);

Parameters

Path System.String

Path of the resource relative to `{ITEM}/resources/`. ArcGIS Maps SDK for JavaScript

PortalItem PortalItem

The portal item that owns the resource. ArcGIS Maps SDK for JavaScript

Properties

PortalItemResource.AbortManager Property

Allows for transmitting CancellationToken cancel signals to JavaScript.

public dymaptic.GeoBlazor.Core.Model.AbortManager? AbortManager { get; set; }

Implements AbortManager

Property Value

AbortManager

PortalItemResource.CoreJsModule Property

Reference to the Core JavaScript module.

public Microsoft.JSInterop.IJSObjectReference? CoreJsModule { get; set; }

Implements CoreJsModule

Property Value

Microsoft.JSInterop.IJSObjectReference

PortalItemResource.Id Property

A unique Id to identify this record in JavaScript.

public System.Guid Id { get; set; }

Implements Id

Property Value

System.Guid

PortalItemResource.JsComponentReference Property

Represents the JavaScript component reference.

public Microsoft.JSInterop.IJSObjectReference? JsComponentReference { get; set; }

Implements JsComponentReference

Property Value

Microsoft.JSInterop.IJSObjectReference

PortalItemResource.Path Property

Path of the resource relative to `{ITEM}/resources/`. ArcGIS Maps SDK for JavaScript

public string? Path { get; set; }

Property Value

System.String

PortalItemResource.PortalItem Property

The portal item that owns the resource. ArcGIS Maps SDK for JavaScript

public dymaptic.GeoBlazor.Core.Components.PortalItem? PortalItem { get; set; }

Property Value

PortalItem

Methods

PortalItemResource.Fetch(ResponseType, PortalItemResourceFetchOptions, CancellationToken) Method

Requests the PortalItemResource data in the format specified for the `responseType`. param options An object wih the following properties. ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<string?> Fetch(dymaptic.GeoBlazor.Core.Enums.ResponseType responseType, dymaptic.GeoBlazor.Core.Options.PortalItemResourceFetchOptions options, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

responseType ResponseType

The format of the response.

options PortalItemResourceFetchOptions

An object wih the following properties.

cancellationToken System.Threading.CancellationToken

The CancellationToken to cancel an asynchronous operation.

Returns

System.Threading.Tasks.Task<System.String>

PortalItemResource.Update(Stream, PortalItemResourceUpdateOptions, CancellationToken) Method

Updates an existing resource with new content. param options An object wih the following properties. ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<string?> Update(System.IO.Stream content, dymaptic.GeoBlazor.Core.Options.PortalItemResourceUpdateOptions options, System.Threading.CancellationToken cancellationToken=default(System.Threading.CancellationToken));

Parameters

content System.IO.Stream

The resource content.

options PortalItemResourceUpdateOptions

An object wih the following properties.

cancellationToken System.Threading.CancellationToken

The CancellationToken to cancel an asynchronous operation.

Returns

System.Threading.Tasks.Task<System.String>