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

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

Syntax

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

Parameters

key
Type: System..::..String
The key.
portalID
Type: System..::..Int32
The portal ID.
defaultValue
Type: System..::..Int32
The 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 (for specified lang, otherwise return defaultValue.

See Also