SPWebTemplate.VisibilityFeatureDependencyId property

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

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

'Declaration
Public ReadOnly Property VisibilityFeatureDependencyId As Guid
	Get
'Usage
Dim instance As SPWebTemplate
Dim value As Guid

value = instance.VisibilityFeatureDependencyId

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 in the UI when users are creating new Web sites. This attribute is not supported for Features with Web application scope.

Show: