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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

Syntax

'Declaration
Public ReadOnly Property VisibilityFeatureDependencyId As Guid
    Get
'Usage
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 in the UI when users are creating new Web sites. This attribute is not supported for Features with Web application scope.

See Also

Reference

SPWebTemplate Class

SPWebTemplate Members

Microsoft.SharePoint Namespace