This documentation is archived and is not being maintained.

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.

Show: