Gets the portal setting as boolean.
Namespace: DotNetNuke.Entities.PortalsAssembly: DotNetNuke (in DotNetNuke.dll)
Syntax
| C# |
|---|
public static bool GetPortalSettingAsBoolean( string key, int portalID, bool defaultValue ) |
| Visual Basic |
|---|
Public Shared Function GetPortalSettingAsBoolean ( key As String, portalID As Integer, defaultValue As Boolean ) As Boolean |
Parameters
- key
- Type: System..::..String
The key.
- portalID
- Type: System..::..Int32
The portal ID.
- defaultValue
- Type: System..::..Boolean
default value.