INamedElement.GetProfileReferencePackage Method
Namespace: NextDesign.Core
Description
Gets the profile reference package that manages this element.
If this element itself is a profile reference package, get the element itself.
If this element is an element with multiple profile references (an element with a profile reference and a profile reference added by a profile reference), get the package recorded as the base of the profile with dependencies in the profile reference information.
Also, if this element is not an element under a profile reference package, get the root package of the profile.
This behavior means that an element defined in a profile will return the package corresponding to the root package of the profile that defined the element, regardless of how the profile was referenced.