Show / Hide Table of Contents

Method AddAttachment

AddAttachment(String, String)

Adds the specified file as an attachment.

Declaration
public PopupAttachment AddAttachment(string filename, string contentType)
Parameters
Type Name Description
System.String filename

The file path to the attachment data

System.String contentType

The MIME content type of the data

Returns
Type Description
PopupAttachment

The popup attachment that was added

Remarks

This edit does not go into the table until changes are applied to the table through FinishEditingAsync(). However, the attachment will be available in Attachments.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.2.1 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 100.15

AddAttachment(String, String, Byte[])

Adds the specified data as an attachment.

Declaration
public PopupAttachment AddAttachment(string name, string contentType, byte[] data)
Parameters
Type Name Description
System.String name

The name of the attachment

System.String contentType

The MIME content type of the data

System.Byte[] data

data to be added as attachment

Returns
Type Description
PopupAttachment

The popup attachment that was added

Remarks

This edit does not go into the table until changes are applied to the table through FinishEditingAsync(). However, the attachment will be available in Attachments.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.15
.NET 6.0100.13 - 100.15
.NET 6.0 Windows100.13 - 100.15
.NET Framework100.2.1 - 100.15
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.2.1 - 100.15
Xamarin.iOS100.2.1 - 100.15
UWP100.2.1 - 100.15
In This Article
Back to top Copyright © 2022 Esri.