dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components

CodedValueDomain Class

Information about the coded values belonging to the domain.
ArcGIS Maps SDK for JavaScript

public class CodedValueDomain<T> : dymaptic.GeoBlazor.Core.Components.Domain

Type parameters

T

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 Domain 🡒 CodedValueDomain

Constructors

CodedValueDomain() Constructor

Parameterless constructor for use as a Razor Component.

public CodedValueDomain();

CodedValueDomain(IReadOnlyList<CodedValue>, string) Constructor

Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.

public CodedValueDomain(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.CodedValue<T>>? codedValues=null, string? name=null);

Parameters

codedValues System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.CodedValue<T>>

An array of the coded values in the domain.
ArcGIS Maps SDK for JavaScript

name System.String

The domain name.
ArcGIS Maps SDK for JavaScript

Properties

CodedValueDomain.CodedValues Property

An array of the coded values in the domain.

public System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.CodedValue<T>>? CodedValues { get; set; }

Property Value

System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.CodedValue<T>>

CodedValueDomain.Type Property

The domain type.

public override string Type { get; }

Property Value

System.String

Methods

CodedValueDomain.AddToCodedValues(CodedValue[]) Method

Asynchronously adds elements to the CodedValues property.

public System.Threading.Tasks.Task AddToCodedValues(params dymaptic.GeoBlazor.Core.Components.CodedValue<T>[] values);

Parameters

values dymaptic.GeoBlazor.Core.Components.CodedValue<T>[]

The elements to add.

Returns

System.Threading.Tasks.Task

CodedValueDomain.GetCodedValues() Method

Asynchronously retrieve the current value of the CodedValues property.

public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.CodedValue<T>>?> GetCodedValues();

Returns

System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.CodedValue<T>>>

CodedValueDomain.GetName(string) Method

Returns the name of the coded-value associated with the specified code.
ArcGIS Maps SDK for JavaScript

public System.Threading.Tasks.Task<string?> GetName(string code);

Parameters

code System.String

The code associated with the desired name, e.g.

1  
``` could be a code used for a returned name of   
  
```csharp  
pavement  
```.

#### Returns
[System.Threading.Tasks.Task&lt;](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')[System.String](https://docs.microsoft.com/en-us/dotnet/api/System.String 'System.String')[&gt;](https://docs.microsoft.com/en-us/dotnet/api/System.Threading.Tasks.Task-1 'System.Threading.Tasks.Task`1')

<a name='dymaptic.GeoBlazor.Core.Components.CodedValueDomain_T_.RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent)'></a>

## CodedValueDomain<T>.RegisterChildComponent(MapComponent) Method

Called from [dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync](https://docs.microsoft.com/en-us/dotnet/api/dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync 'dymaptic.GeoBlazor.Core.Components.MapComponent.OnInitializedAsync') to "Register" the current component with its parent.

```csharp
public override System.Threading.Tasks.Task RegisterChildComponent(dymaptic.GeoBlazor.Core.Components.MapComponent child);

Parameters

child MapComponent

The calling, child component to register

Returns

System.Threading.Tasks.Task

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.

CodedValueDomain.RemoveFromCodedValues(CodedValue[]) Method

Asynchronously remove an element from the CodedValues property.

public System.Threading.Tasks.Task RemoveFromCodedValues(params dymaptic.GeoBlazor.Core.Components.CodedValue<T>[] values);

Parameters

values dymaptic.GeoBlazor.Core.Components.CodedValue<T>[]

The elements to remove.

Returns

System.Threading.Tasks.Task

CodedValueDomain.SetCodedValues(IReadOnlyList<CodedValue>) Method

Asynchronously set the value of the CodedValues property after render.

public System.Threading.Tasks.Task SetCodedValues(System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.CodedValue<T>>? value);

Parameters

value System.Collections.Generic.IReadOnlyList<dymaptic.GeoBlazor.Core.Components.CodedValue<T>>

The value to set.

Returns

System.Threading.Tasks.Task

CodedValueDomain.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

System.Threading.Tasks.Task

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.