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
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

SPWebTemplate.VisibilityFeatureDependencyId Property

Windows SharePoint Services 3

Gets the GUID that identifies a Feature on which the site definition configuration or site template depends.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public Guid VisibilityFeatureDependencyId { get; }

Property Value

Type: System.Guid
A Guid that identifies a Feature on which the site definition configuration or template depends. The default is all zeros.

This property corresponds to the VisibilityFeatureDependency attribute of a <Configuration> element in a WebTemp*.xml file. It is used to hide the site definition configuration based on the activation state of the specified Feature. When a site definition configuration contains Features that depend upon another Feature, setting this attribute prevents the site definition configuration from appearing as an option on the Template Selection section of the New SharePoint Site page if the specified Feature is not installed or activated. This attribute is not supported for Features with Web application scope.

Community Additions

© 2015 Microsoft