Method UpdateAttachmentAsync
UpdateAttachmentAsync(Attachment, string, string, ReadOnlySpan<byte>)
Asynchronously updates the specified Attachment of this feature.
Declaration
public Task UpdateAttachmentAsync(Attachment attachment, string name, string contentType, ReadOnlySpan<byte> data)
Parameters
| Type | Name | Description |
|---|---|---|
| Attachment | attachment | The Attachment of the attachment to update. |
| string | name | The name for the attachment. |
| string | contentType | The content type for the attachment. |
| ReadOnlySpan<byte> | data | The data for the attachment. |
Returns
| Type | Description |
|---|---|
| Task | A Task that represents the asynchronous update attachment operation. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 200.3 - 300.0 |
| .NET Windows | 200.3 - 300.0 |
| .NET Android | 200.3 - 300.0 |
| .NET iOS | 200.3 - 300.0 |
UpdateAttachmentAsync(Attachment, string, string, byte[])
Asynchronously updates the specified Attachment of this feature.
Declaration
public Task UpdateAttachmentAsync(Attachment attachment, string name, string contentType, byte[] data)
Parameters
| Type | Name | Description |
|---|---|---|
| Attachment | attachment | The Attachment of the attachment to update. |
| string | name | The name for the attachment. |
| string | contentType | The content type for the attachment. |
| byte[] | data | The data for the attachment. |
Returns
| Type | Description |
|---|---|
| Task | A task that represents the asynchronous update attachment operation. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET Standard 2.0 | 100.3 - 200.8 |
| .NET | 100.13 - 300.0 |
| .NET Windows | 100.13 - 300.0 |
| .NET Android | 200.0 - 300.0 |
| .NET iOS | 200.0 - 300.0 |
| .NET Framework | 100.0 - 200.8 |
| Xamarin.Android | 100.0 - 100.15 |
| Xamarin.iOS | 100.0 - 100.15 |
| UWP | 100.0 - 200.8 |
UpdateAttachmentAsync(Attachment, string, string, byte[], string)
Asynchronously updates the specified Attachment with keywords of this feature.
Declaration
public Task UpdateAttachmentAsync(Attachment attachment, string name, string contentType, byte[] data, string keywords)
Parameters
| Type | Name | Description |
|---|---|---|
| Attachment | attachment | The Attachment of the attachment to update. |
| string | name | The name for the attachment. |
| string | contentType | The content type for the attachment. |
| byte[] | data | The data for the attachment. |
| string | keywords | The keywords for the attachment. |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
Throws an error if the feature layer doesn't support the attachment keywords.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
| ArgumentNullException | Thrown if |
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |
UpdateAttachmentAsync(Attachment, string, string, ReadOnlySpan<byte>, string)
Asynchronously updates the specified Attachment with keywords of this feature.
Declaration
public Task UpdateAttachmentAsync(Attachment attachment, string name, string contentType, ReadOnlySpan<byte> data, string keywords)
Parameters
| Type | Name | Description |
|---|---|---|
| Attachment | attachment | The Attachment of the attachment to update. |
| string | name | The name for the attachment. |
| string | contentType | The content type for the attachment. |
| ReadOnlySpan<byte> | data | The data for the attachment. |
| string | keywords | The keywords for the attachment. |
Returns
| Type | Description |
|---|---|
| Task |
Remarks
Throws an error if the feature layer doesn't support the attachment keywords.
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |
UpdateAttachmentAsync(Attachment, string, string, string, string)
Asynschronously updates the specified Attachment with keywords of this feature.
Declaration
public Task UpdateAttachmentAsync(Attachment attachment, string name, string contentType, string filePath, string keywords)
Parameters
| Type | Name | Description |
|---|---|---|
| Attachment | attachment | The Attachment of the attachment to update. |
| string | name | The name for the attachment. |
| string | contentType | The content type for the attachment. |
| string | filePath | The file path that will be used for the attachment's content |
| string | keywords | The keywords for the attachment. |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| FileNotFoundException | Thrown if the file specified by |
| ArgumentNullException | Thrown if |
| InvalidOperationException | Thrown if the feature table doesn't support attachments. |
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |
UpdateAttachmentAsync(Attachment, string, string, string)
Asysnchronously updates the specified Attachment of this feature.
Declaration
public Task UpdateAttachmentAsync(Attachment attachment, string name, string contentType, string filePath)
Parameters
| Type | Name | Description |
|---|---|---|
| Attachment | attachment | The Attachment of the attachment to update. |
| string | name | The name for the attachment. |
| string | contentType | The content type for the attachment. |
| string | filePath | The file path that will be used for the attachment's content |
Returns
| Type | Description |
|---|---|
| Task |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Thrown if |
| FileNotFoundException | Thrown if the file specified by |
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300 |
| .NET Windows | 300 |
| .NET Android | 300 |
| .NET iOS | 300 |