Gets the portal setting as boolean for a specific language (or neutral).

Namespace: DotNetNuke.Entities.Portals
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static bool GetPortalSettingAsBoolean(
	string key,
	int portalID,
	bool defaultValue,
	string cultureCode
)
Visual Basic
Public Shared Function GetPortalSettingAsBoolean ( 
	key As String,
	portalID As Integer,
	defaultValue As Boolean,
	cultureCode As String
) As Boolean

Parameters

key
Type: System..::..String
The key.
portalID
Type: System..::..Int32
The portal ID.
defaultValue
Type: System..::..Boolean
default value.
cultureCode
Type: System..::..String
culture code of the language to retrieve (not empty)

Return Value

Returns setting's value if portal contains the specific setting in specified language or neutral, otherwise return defaultValue.

See Also