Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ActivationDependencies Element (Feature)

Last modified: May 30, 2008

Applies to: SharePoint Foundation 2010

In this article
Attributes
Child Elements
Parent Elements
Occurrences

Specifies a list of features on which the activation of the current feature depends.


<ActivationDependencies>
</ActivationDependencies>

Attribute

Description

None

N/A

Minimum: 0

Maximum: 1

If the Feature on which the current Feature depends is hidden and inactive, it is activated automatically. Such a hidden Feature is deactivated when the last Feature depending on it is deactivated. If the Feature is visible, it is not activated automatically. A hidden Feature cannot have any activation dependencies.

If included within a Feature element, the following code example prevents the current Feature from being activated unless the Feature with the specified ID is activated.

<ActivationDependencies>
  <ActivationDependency
    FeatureId="11111111-1111-1111-1111-111111111111" />
</ActivationDependencies>

For another example of how this element is used, see Feature.xml Files.

Show:
© 2015 Microsoft