XmlFilterReaderGetValueAsInt Method (String) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Gets the value of a column as an Int32 given the column name.

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

public int GetValueAsInt(
	string name
)

Parameters

name
Type: SystemString
The column name, this value is case sensitive.

Return Value

Type: Int32
The column value as a Int32 if the column name was found, null (Nothing in Visual Basic) otherwise.
Exceptions

ExceptionCondition
InvalidOperationExceptionProperty or method is inaccessible for a closed XmlFilterReader.
IndexOutOfRangeExceptionThe column name does not exist on the current record.
InvalidCastExceptionThe column value cannot be converted to Int32
See Also

Reference