I am not a C# speaker and I am wondering if, with my supplied code, I can make the commented-out code happen in the function WarrensTest, i.e., can I get the ItemUpdated(SPItemEventPro
perties properties) properies in that function.
Because I am still yet to get a RunWithElevatedPrivileges example to work. I was using the delegate() option with no luck. If I can use CodeToRunElevated, I may have a chance, but you can't send parameters to functions named with that use...
Thanks in advance.
public class SetPermissions : SPItemEventReceiver
public override void ItemUpdated(SPItemEventProperties properties)
//SPFile myFile = properties.ListItem.File;
//myFile.Properties["debugmsg"] = myFile.Properties["MailTo"].ToString();
SPSecurity.CodeToRunElevated elevatedWarrensTest = new SPSecurity.CodeToRunElevated(WarrensTest);
private void WarrensTest()
SPFile myFile = ???????????????? .ListItem.File;
myFile.Properties["debugmsg"] = myFile.Properties["MailTo"].ToString();