CSXmlParserGetParameterAsInt32 Method (String, Int32) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Returns a parameter as an integer. The value must be possible to convert to an integer.

Namespace: ContentStudio
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public int GetParameterAsInt32(
	string parameterName,
	int defaultValue
)

Parameters

parameterName
Type: SystemString
The name of the parameter to return
defaultValue
Type: SystemInt32
The value to return if the parameter does not exists

Return Value

Type: Int32
The value as an Int32
Exceptions

ExceptionCondition
InvalidCastExceptionThe parameter value cannot be converted to the return type.
See Also

Reference