Show / Hide Table of Contents

Class AttachmentsFormElement

A form element that holds one or more attachments on a feature.

Inheritance
object
FormElement
AttachmentsFormElement
Implements
INotifyPropertyChanged
FormElement.Description
FormElement.IsVisible
FormElement.Label
FormElement.ToJson()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Esri.ArcGISRuntime.Mapping.FeatureForms
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class AttachmentsFormElement : FormElement, INotifyPropertyChanged
Remarks

The AttachmentsFormElement specifies how one or more attachments can participate in the form. When present in the form, the user has the ability to edit the list of attachments specific to the form element.

Properties

Name Description
AllowUserRename

Gets a value indicating whether the user can rename attachments added through this element.

AttachmentKeywordAssociation

Gets a value that defines how existing attachments are associated with this element.

Attachments

Gets all the current attachments. This is empty if attachments haven't yet been fetched.

DisplayFilename

Gets a value indicating whether attachment file names should be displayed.

Inputs

Gets the input types that can be used to add attachments.

IsEditable

Gets a value indicating whether the element is editable, false otherwise.

Keyword

Gets a string to identify the attachment(s).

MaxAttachmentCount

Gets the maximum number of attachments allowed for this element.

MinAttachmentCount

Gets the minimum number of attachments required for this element.

UseOriginalFilename

Gets a value indicating whether uploaded attachments preserve their original file name.

ValidationErrors

Gets an array of validation errors for this element.

Methods

Name Description
AddAttachment(string, string, byte[])

Adds a new attachment to this AttachmentsFormElement using the supplied final attachment name.

AddAttachment(string, string, ReadOnlySpan<byte>)

Adds a new attachment to this AttachmentsFormElement using the supplied final attachment name.

AddAttachmentAsync(string, byte[], CancellationToken)

Asynchronously adds a new attachment to this AttachmentsFormElement.

AddAttachmentAsync(string, ReadOnlySpan<byte>, CancellationToken)

Asynchronously adds a new attachment to this AttachmentsFormElement.

AddAttachmentAsync(string, string, byte[], CancellationToken)

Asynchronously adds a new attachment to this AttachmentsFormElement using the supplied final attachment name.

AddAttachmentAsync(string, string, ReadOnlySpan<byte>, CancellationToken)

Asynchronously adds a new attachment to this AttachmentsFormElement using the supplied final attachment name.

AddAttachmentAsync(string, string, string)

Adds a new attachment to this AttachmentsFormElement from the specified file using the supplied final attachment name.

AddAttachmentAsync(string, string, CancellationToken)

Asynchronously adds a new attachment to this AttachmentsFormElement from the specified file.

DeleteAttachment(FormAttachment)

Asynchronously deletes an attachment from the Feature

FetchAttachmentsAsync()

Fetches the attachments from the Feature and populates Attachments. Attachments are not re-fetched if they have already been fetched.

Applies to

TargetVersions
.NET Standard 2.0200.5 - 200.8
.NET200.5 - 300.1
.NET Windows200.5 - 300.1
.NET Android200.5 - 300.1
.NET iOS200.5 - 300.1
.NET Framework200.5 - 200.8
UWP200.5 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.