Class AttachmentsFormElement
A form element that holds one or more attachments on a feature.
Implements
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, |
| 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
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 200.5 - 200.8 |
| .NET | 200.5 - 300.1 |
| .NET Windows | 200.5 - 300.1 |
| .NET Android | 200.5 - 300.1 |
| .NET iOS | 200.5 - 300.1 |
| .NET Framework | 200.5 - 200.8 |
| UWP | 200.5 - 200.8 |