dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Model
PortalItemResource Class
A reference to a portal item resource.
ArcGIS Maps SDK for JavaScript
public class 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
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
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
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
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.
param options.signal Signal object that can be used to abort the asynchronous task. The returned promise will be rejected with an Error named AbortError
when an abort is signaled. See also AbortController for more information on how to construct a controller that can be used to deliver abort signals.
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
- options.cacheBust: If
true
, the browser will send a request to the server instead of using the browser’s local cache. Iffalse
, the browser’s default cache handling will be used.
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.
param options.signal Signal object that can be used to abort the asynchronous task. The returned promise will be rejected with an Error named AbortError
when an abort is signaled. See also AbortController for more information on how to construct a controller that can be used to deliver abort signals.
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
- options.access: Indicates the level of access to the resource. The default is “inherit” which causes the resource to have the same access level as the owning item.
cancellationToken
System.Threading.CancellationToken
The CancellationToken to cancel an asynchronous operation.