Share via


SPModule.Enabled property

Gets or sets a Boolean value that specifies whether the module is enabled for the site.

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

Syntax

'Declaration
Public Property Enabled As Boolean
    Get
    Set
'Usage
Dim instance As SPModule
Dim value As Boolean

value = instance.Enabled

instance.Enabled = value
public bool Enabled { get; set; }

Property value

Type: System.Boolean
true if the module is enabled; otherwise, false.

See also

Reference

SPModule class

SPModule members

Microsoft.SharePoint namespace