ArcGIS API for Windows Phone - Library Reference
AddAttachment(Graphic,Stream,String,Action<AttachmentResult>,Action<Exception>) Method
See Also  Send comments on this topic
ESRI.ArcGIS.Client Namespace > FeatureLayer Class > AddAttachment Method : AddAttachment(Graphic,Stream,String,Action<AttachmentResult>,Action<Exception>) Method

g
The feature to add an attachment to.
file
The file stream used for the attachment.
filename
Name of the attachment.
callback
The method to call when completed.
errorCallback
The method to call if an error occurs.
Adds an attachment to a feature.

Syntax

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

Remarks

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

Parameters

g
The feature to add an attachment to.
file
The file stream used for the attachment.
filename
Name of the attachment.
callback
The method to call when completed.
errorCallback
The method to call if an error occurs.

Requirements

Target Platforms:Windows Phone 7

See Also

© ESRI, Inc. All Rights Reserved.