EPTXmlTextParserGetAsInt32 Method Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Returns the value as an Int32 of a specified Content Studio EPT field.

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

public int GetAsInt32(
	string fieldName


Type: SystemString
The name of the field. This name cannot be null.

Return Value

Type: Int32
The value of the field if found, -1 if the field does not exist.

ArgumentNullExceptionThe argument FieldName cannot be null.
FormatExceptionThe value cannot be converted to an integer (i.e. the field value does not consist solely of an optional negative sign followed by a sequence of digits ranging from 0 to 9).
OverflowExceptionThe field value represents a number less than MinValue or greater than MaxValue.
See Also