ArcGIS Runtime SDK for WPF - Library Reference
UpdateAttachment(Graphic,Int32,Stream,String,String,Action<AttachmentResult>,Action<Exception>) Method
See Also 
ESRI.ArcGIS.Client Namespace > FeatureLayer Class > UpdateAttachment Method : UpdateAttachment(Graphic,Int32,Stream,String,String,Action<AttachmentResult>,Action<Exception>) Method

g
The ID of the feature that owns the attachment.
attachmentID
The ID of the attachment to be updated.
file
The file stream used for the attachment.
filename
Name of the attachment.
contentType
MimeType of the content.
callback
The method to call when completed.
errorCallback
The method to call if an error occurs.
Updates the specified attachment of a feature.

Syntax

Visual Basic (Declaration) 
Public Overloads Sub UpdateAttachment( _
   ByVal g As Graphic, _
   ByVal attachmentID As Integer, _
   ByVal file As Stream, _
   ByVal filename As String, _
   ByVal contentType As String, _
   ByVal callback As Action(Of AttachmentResult), _
   ByVal errorCallback As Action(Of Exception) _
) 
C# 
public void UpdateAttachment( 
   Graphic g,
   int attachmentID,
   Stream file,
   string filename,
   string contentType,
   Action<AttachmentResult> callback,
   Action<Exception> errorCallback
)

Remarks

Filename extension will be used to determine the MimeType associated with the attachment.

Parameters

g
The ID of the feature that owns the attachment.
attachmentID
The ID of the attachment to be updated.
file
The file stream used for the attachment.
filename
Name of the attachment.
contentType
MimeType of the content.
callback
The method to call when completed.
errorCallback
The method to call if an error occurs.

Requirements

Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows 7, Windows 8

See Also

© ESRI, Inc. All Rights Reserved.