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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.2.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 100.15 |
.NET 6.0 | 100.13 - 100.15 |
.NET 6.0 Windows | 100.13 - 100.15 |
.NET Framework | 100.2.1 - 100.15 |
.NET 5 | 100.10 - 100.12 |
.NET Core 3.1 | 100.7 - 100.12 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 100.15 |