Marco Bellinaso
Guest
|
Posted:
Wed Jan 19, 2005 1:23 am Post subject:
Re: Attach Document Library Event Handler in Code |
|
|
Something like this should work:
SPList docs = web.Lists["Shared Documents"];
docs.EventSinkAssembly = "full name of your assembly";
docs.EventSinkClass = "full_namespace.classname";
docs.EventSinkData = "optional settings here";
docs.Update();
HTH,
- Marco
"Harold Crump" <orientletter@yahoo.com> wrote in message
news:1106075571.128332.109850@f14g2000cwb.googlegroups.com...
| Quote: | Greetings,
I want to attach event handlers in a document library through code.
Is it possible?
I will have a reference to the SPWeb object as well as
SPDocumentLibrary object.
Is there any API that does this or can it be done only through the
SharePoint pages?
Thanks.
|
|
|