How do you bound an event receiver to a *specific* custom content type?
问题 I've created an event receiver and have added to the GAC. How do I bound an event receiver to a specific custom content type? I need to do this from an XML file: So far I have: Feature.xml that points to an Elements.xml file but am not sure about the Elements.xml file. How do you reference a specific content type? (I have the guid for the specific content-type) 回答1: To bind an event receiver to a specific content type, you use the XmlDocuments element of the content type elements file. Here's