I have default sharepoint web site. In events reciever of Pages library i can access my current web:
var web=properties.Web;
And i got very strange problem. web.ContentTypes collection is emtpy. I cannot get and access any content type there! When via website i see all content types for current web.
Why this ContentTypes collection is empty?