featureLayer.AddAttachment(theNewObjectID, stream, ofdWorksheet.File.Name, null, null);
I would also like to implement: AttachmentResult and Exception .
var callback = (Action<AttachmentResult>)delegate(AttachmentResult result) { MessageBox.Show("Added attachment to " + result.ObjectID); }; var errorCallback = (Action<Exception>)delegate(Exception result) { MessageBox.Show("Error adding attachment : " + result.Message); }; featureLayer.AddAttachment(theNewObjectID, stream, ofdWorksheet.File.Name, callback, errorCallback);
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.