다음을 통해 공유


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

Syntax

'Declaration
Public ReadOnly Property RequireResources As Boolean
    Get
'Usage
Dim instance As SPFeatureDefinition
Dim value As Boolean

value = instance.RequireResources
public bool RequireResources { get; }

Property Value

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

Remarks

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).

See Also

Reference

SPFeatureDefinition Class

SPFeatureDefinition Members

Microsoft.SharePoint.Administration Namespace

Other Resources

Feature Element (Feature)