Gets the portal setting as boolean.

Namespace: DotNetNuke.Entities.Portals
Assembly: 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.

Return Value

Returns setting's value if portal contains the specific setting, otherwise return defaultValue.

See Also