XmlDictionaryReader.ReadArray Method (String, String, Int16[], Int32, Int32)

Reads repeated occurrences of short integers into a typed array.

Namespace: System.Xml
Assembly: System.Runtime.Serialization (in system.runtime.serialization.dll)

'Declaration
Public Overridable Function ReadArray ( _
	localName As String, _
	namespaceUri As String, _
	array As Short(), _
	offset As Integer, _
	count As Integer _
) As Integer
'Usage
Dim instance As XmlDictionaryReader
Dim localName As String
Dim namespaceUri As String
Dim array As Short()
Dim offset As Integer
Dim count As Integer
Dim returnValue As Integer

returnValue = instance.ReadArray(localName, namespaceUri, array, offset, count)
public int ReadArray (
	String localName, 
	String namespaceUri, 
	short[] array, 
	int offset, 
	int count
)
public function ReadArray (
	localName : String, 
	namespaceUri : String, 
	array : short[], 
	offset : int, 
	count : int
) : int
Not applicable.

Parameters

localName

The local name of the element.

namespaceUri

The namespace URI of the element.

array

The array into which the integers are put.

offset

The starting index in the array.

count

The number of integers to put in the array.

Return Value

The number of integers put in the array.

Exception typeCondition

ArgumentNullException

array is a null reference (Nothing in Visual Basic).

ArgumentOutOfRangeException

offset is < 0 or > array length.

ArgumentOutOfRangeException

count is < 0 or > array length minus offset.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: