SharePoint newbie here.
I have a web part that is attached to SharePoint's edit page [EditForm.aspx]. How do I determine if the document being edited is linked to a content type that inherits, at any level of its inheritance chain, from a specified base type?
For instance, I have a base content type called "Document Base". I want this web part to take action if and only if the document being edited ultimately derives from this base type. How can I determine this from within my web part?