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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.2.1 - 200.6 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.6 |
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 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.2.1 - 200.6 |
Xamarin.Android | 100.2.1 - 100.15 |
Xamarin.iOS | 100.2.1 - 100.15 |
UWP | 100.2.1 - 200.6 |