Click or drag to resize

DefaultConfigurableCacheFactoryConvertInt Method (IXmlValue, Int32)

.NET API Reference for Oracle® Coherence Community Edition
(14.1.1.0)
E55634-01
Convert the value in the specified IXmlValue to an int. If the conversion fails, a warning will be logged.

Namespace:  Tangosol.Net
Assembly:  Coherence (in Coherence.dll) Version: 14.1.1.1 (14.1.1.1)
Syntax
C#
protected static int ConvertInt(
	IXmlValue xmlValue,
	int defaultValue
)

Parameters

xmlValue
Type: Tangosol.Run.XmlIXmlValue
The element expected to contain an int value.
defaultValue
Type: SystemInt32
The value that will be returned if the element does not contain a value that can be converted to int.

Return Value

Type: Int32
The int value in the provided element, or defaultValue upon a conversion failure.
See Also