This topic has not yet been rated - Rate this topic

SPFeatureDefinition.RequireResources Property

Gets the Boolean value that specifies whether this feature is associated with localized resources.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
public bool RequireResources { get; }

Property Value

Type: System.Boolean
Returns a Boolean variable that specifies whether this global feature requires localized resources.

The RequireResources property corresponds to the RequireResources attribute of the Feature element in the XML that defines the Feature. The RequireResources attribute on a Feature definition allows you to constrict the visibility of the Feature depending on whether resources are available for all languages supported by the website. For a Site scoped Feature, the root website in the site collection is used for the determination. If you set the RequireResources property to true and resources are not available, then the Feature is hidden and cannot be activated through the user interface. For more information, see Feature Element (Feature).

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ