SPContentTypeCollection tcs = oSiteCollection.RootWeb.ContentTypes;
foreach (SPContentType tc in tcs)
{
contenido.InnerHtml += "<span><b>" + tc.Name + "</b></span><br>";
SPEventReceiverDefinitionCollection eventos = tc.EventReceivers;
foreach (SPEventReceiverDefinition evento in eventos)
{
contenido.InnerHtml += "<span>" + evento.Synchronization + "</span><br>";
contenido.InnerHtml += "<span>" + evento.Class + "</span><br>";
contenido.InnerHtml += "<span>" + evento.Type + "</span><br>";
}
}
0 comentarios:
Publicar un comentario