Oracle® Fusion Middleware .NET API Reference for Oracle Coherence
12c (12.2.1.4.0)
E90869-02
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: 12.2.1.4014 (12.2.1.4014)

Syntax

C#
protected static int ConvertInt(
	IXmlValue xmlValue,
	int defaultValue
)

Parameters

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

Return Value

The int value in the provided element, or defaultValue upon a conversion failure.

See Also