Visual Basic (Declaration) | |
---|---|
Public Overloads Sub AddAttachment( _ ByVal featureID As String, _ ByVal file As Stream, _ ByVal filename As String, _ ByVal callback As Action(Of AttachmentResult), _ ByVal errorCallback As Action(Of Exception) _ ) |
C# | |
---|---|
public void AddAttachment( string featureID, Stream file, string filename, Action<AttachmentResult> callback, Action<Exception> errorCallback ) |
Parameters
- featureID
- The ID of 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.
Filename extension will be used to determine the MimeType associated with the attachment.
Target Platforms: Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family