SPWebTemplate.VisibilityFeatureDependencyId Property

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)

Syntax

Public ReadOnly Property VisibilityFeatureDependencyId As Guid
    Get

Dim instance As SPWebTemplate
Dim value As Guid

value = instance.VisibilityFeatureDependencyId
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.

Remarks

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.

See Also

Reference

SPWebTemplate Class

SPWebTemplate Members

Microsoft.SharePoint Namespace