2010-03-24 9 views

Répondre

0

ci-dessous code nous donne d'abord Nom de fixation

SPFile attachment = properties.ListItem.ParentList.RootFolder. 
     SubFolders["Attachments"].SubFolders[properties.ListItemId.ToString()]. 
     Files[properties.ListItem.Attachments.Count - 1];  

string link = attachment.Name ; 
1

utiliser

string beforeUrl = properties.BeforeUrl; 
string[] fileName = beforeUrl.Split('/'); 
string deletedfile = fileName[fileName.Length - 1];