Прочетете на английски Редактиране

Споделяне чрез


XmlDictionaryReader.ReadArray Method

Definition

Reads repeated occurrences of a data type into a typed array.

Overloads

ReadArray(XmlDictionaryString, XmlDictionaryString, Single[], Int32, Int32)

Reads repeated occurrences of float numbers into a typed array.

ReadArray(XmlDictionaryString, XmlDictionaryString, Int64[], Int32, Int32)

Reads repeated occurrences of long integers into a typed array.

ReadArray(XmlDictionaryString, XmlDictionaryString, Int32[], Int32, Int32)

Reads repeated occurrences of integers into a typed array.

ReadArray(XmlDictionaryString, XmlDictionaryString, Int16[], Int32, Int32)

Reads repeated occurrences of short integers into a typed array.

ReadArray(XmlDictionaryString, XmlDictionaryString, Guid[], Int32, Int32)

Reads repeated occurrences of Guid nodes into a typed array.

ReadArray(XmlDictionaryString, XmlDictionaryString, Double[], Int32, Int32)

Reads repeated occurrences of Double nodes type into a typed array.

ReadArray(XmlDictionaryString, XmlDictionaryString, Decimal[], Int32, Int32)

Reads repeated occurrences of Decimal nodes into a typed array.

ReadArray(XmlDictionaryString, XmlDictionaryString, DateTime[], Int32, Int32)

Reads repeated occurrences of DateTime nodes into a typed array.

ReadArray(XmlDictionaryString, XmlDictionaryString, Boolean[], Int32, Int32)

Reads repeated occurrences of Boolean nodes into a typed array.

ReadArray(XmlDictionaryString, XmlDictionaryString, TimeSpan[], Int32, Int32)

Reads repeated occurrences of TimeSpan nodes into a typed array.

ReadArray(String, String, Single[], Int32, Int32)

Reads repeated occurrences of float numbers into a typed array.

ReadArray(String, String, TimeSpan[], Int32, Int32)

Reads repeated occurrences of TimeSpan nodes into a typed array.

ReadArray(String, String, DateTime[], Int32, Int32)

Reads repeated occurrences of DateTime nodes into a typed array.

ReadArray(String, String, Decimal[], Int32, Int32)

Reads repeated occurrences of Decimal nodes into a typed array.

ReadArray(String, String, Double[], Int32, Int32)

Reads repeated occurrences of Double nodes into a typed array.

ReadArray(String, String, Boolean[], Int32, Int32)

Reads repeated occurrences of Boolean nodes into a typed array.

ReadArray(String, String, Int16[], Int32, Int32)

Reads repeated occurrences of short integers into a typed array.

ReadArray(String, String, Int32[], Int32, Int32)

Reads repeated occurrences of integers into a typed array.

ReadArray(String, String, Int64[], Int32, Int32)

Reads repeated occurrences of long integers into a typed array.

ReadArray(String, String, Guid[], Int32, Int32)

Reads repeated occurrences of Guid nodes into a typed array.

ReadArray(XmlDictionaryString, XmlDictionaryString, Single[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of float numbers into a typed array.

C#
public virtual int ReadArray(System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri, float[] array, int offset, int count);

Parameters

localName
XmlDictionaryString

The local name of the element.

namespaceUri
XmlDictionaryString

The namespace URI of the element.

array
Single[]

The array into which the float numbers are put.

offset
Int32

The starting index in the array.

count
Int32

The number of float numbers to put in the array.

Returns

The number of float numbers put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(XmlDictionaryString, XmlDictionaryString, Int64[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of long integers into a typed array.

C#
public virtual int ReadArray(System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri, long[] array, int offset, int count);

Parameters

localName
XmlDictionaryString

The local name of the element.

namespaceUri
XmlDictionaryString

The namespace URI of the element.

array
Int64[]

The array into which the integers are put.

offset
Int32

The starting index in the array.

count
Int32

The number of integers to put in the array.

Returns

The number of integers put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(XmlDictionaryString, XmlDictionaryString, Int32[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of integers into a typed array.

C#
public virtual int ReadArray(System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri, int[] array, int offset, int count);

Parameters

localName
XmlDictionaryString

The local name of the element.

namespaceUri
XmlDictionaryString

The namespace URI of the element.

array
Int32[]

The array into which the integers are put.

offset
Int32

The starting index in the array.

count
Int32

The number of integers to put in the array.

Returns

The number of integers put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(XmlDictionaryString, XmlDictionaryString, Int16[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of short integers into a typed array.

C#
public virtual int ReadArray(System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri, short[] array, int offset, int count);

Parameters

localName
XmlDictionaryString

The local name of the element.

namespaceUri
XmlDictionaryString

The namespace URI of the element.

array
Int16[]

The array into which the integers are put.

offset
Int32

The starting index in the array.

count
Int32

The number of integers to put in the array.

Returns

The number of integers put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(XmlDictionaryString, XmlDictionaryString, Guid[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of Guid nodes into a typed array.

C#
public virtual int ReadArray(System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri, Guid[] array, int offset, int count);

Parameters

localName
XmlDictionaryString

The local name of the element.

namespaceUri
XmlDictionaryString

The namespace URI of the element.

array
Guid[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(XmlDictionaryString, XmlDictionaryString, Double[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of Double nodes type into a typed array.

C#
public virtual int ReadArray(System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri, double[] array, int offset, int count);

Parameters

localName
XmlDictionaryString

The local name of the element.

namespaceUri
XmlDictionaryString

The namespace URI of the element.

array
Double[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(XmlDictionaryString, XmlDictionaryString, Decimal[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of Decimal nodes into a typed array.

C#
public virtual int ReadArray(System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri, decimal[] array, int offset, int count);

Parameters

localName
XmlDictionaryString

The local name of the element.

namespaceUri
XmlDictionaryString

The namespace URI of the element.

array
Decimal[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(XmlDictionaryString, XmlDictionaryString, DateTime[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of DateTime nodes into a typed array.

C#
public virtual int ReadArray(System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri, DateTime[] array, int offset, int count);

Parameters

localName
XmlDictionaryString

The local name of the element.

namespaceUri
XmlDictionaryString

The namespace URI of the element.

array
DateTime[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(XmlDictionaryString, XmlDictionaryString, Boolean[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of Boolean nodes into a typed array.

C#
public virtual int ReadArray(System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri, bool[] array, int offset, int count);

Parameters

localName
XmlDictionaryString

The local name of the element.

namespaceUri
XmlDictionaryString

The namespace URI of the element.

array
Boolean[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(XmlDictionaryString, XmlDictionaryString, TimeSpan[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of TimeSpan nodes into a typed array.

C#
public virtual int ReadArray(System.Xml.XmlDictionaryString localName, System.Xml.XmlDictionaryString namespaceUri, TimeSpan[] array, int offset, int count);

Parameters

localName
XmlDictionaryString

The local name of the element.

namespaceUri
XmlDictionaryString

The namespace URI of the element.

array
TimeSpan[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(String, String, Single[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of float numbers into a typed array.

C#
public virtual int ReadArray(string localName, string namespaceUri, float[] array, int offset, int count);

Parameters

localName
String

The local name of the element.

namespaceUri
String

The namespace URI of the element.

array
Single[]

The array into which the float numbers are put.

offset
Int32

The starting index in the array.

count
Int32

The number of float numbers to put in the array.

Returns

The umber of float numbers put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(String, String, TimeSpan[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of TimeSpan nodes into a typed array.

C#
public virtual int ReadArray(string localName, string namespaceUri, TimeSpan[] array, int offset, int count);

Parameters

localName
String

The local name of the element.

namespaceUri
String

The namespace URI of the element.

array
TimeSpan[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(String, String, DateTime[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of DateTime nodes into a typed array.

C#
public virtual int ReadArray(string localName, string namespaceUri, DateTime[] array, int offset, int count);

Parameters

localName
String

The local name of the element.

namespaceUri
String

The namespace URI of the element.

array
DateTime[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(String, String, Decimal[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of Decimal nodes into a typed array.

C#
public virtual int ReadArray(string localName, string namespaceUri, decimal[] array, int offset, int count);

Parameters

localName
String

The local name of the element.

namespaceUri
String

The namespace URI of the element.

array
Decimal[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(String, String, Double[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of Double nodes into a typed array.

C#
public virtual int ReadArray(string localName, string namespaceUri, double[] array, int offset, int count);

Parameters

localName
String

The local name of the element.

namespaceUri
String

The namespace URI of the element.

array
Double[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(String, String, Boolean[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of Boolean nodes into a typed array.

C#
public virtual int ReadArray(string localName, string namespaceUri, bool[] array, int offset, int count);

Parameters

localName
String

The local name of the element.

namespaceUri
String

The local name of the element.

array
Boolean[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(String, String, Int16[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of short integers into a typed array.

C#
public virtual int ReadArray(string localName, string namespaceUri, short[] array, int offset, int count);

Parameters

localName
String

The local name of the element.

namespaceUri
String

The namespace URI of the element.

array
Int16[]

The array into which the integers are put.

offset
Int32

The starting index in the array.

count
Int32

The number of integers to put in the array.

Returns

The number of integers put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(String, String, Int32[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of integers into a typed array.

C#
public virtual int ReadArray(string localName, string namespaceUri, int[] array, int offset, int count);

Parameters

localName
String

The local name of the element.

namespaceUri
String

The namespace URI of the element.

array
Int32[]

The array into which the integers are put.

offset
Int32

The starting index in the array.

count
Int32

The number of integers to put in the array.

Returns

The number of integers put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(String, String, Int64[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of long integers into a typed array.

C#
public virtual int ReadArray(string localName, string namespaceUri, long[] array, int offset, int count);

Parameters

localName
String

The local name of the element.

namespaceUri
String

The namespace URI of the element.

array
Int64[]

The array into which the integers are put.

offset
Int32

The starting index in the array.

count
Int32

The number of integers to put in the array.

Returns

The number of integers put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0

ReadArray(String, String, Guid[], Int32, Int32)

Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs
Source:
XmlDictionaryReader.cs

Reads repeated occurrences of Guid nodes into a typed array.

C#
public virtual int ReadArray(string localName, string namespaceUri, Guid[] array, int offset, int count);

Parameters

localName
String

The local name of the element.

namespaceUri
String

The namespace URI of the element.

array
Guid[]

The array into which the nodes are put.

offset
Int32

The starting index in the array.

count
Int32

The number of nodes to put in the array.

Returns

The number of nodes put in the array.

Exceptions

array is null.

offset is < 0 or > array length.

-or-

count is < 0 or > array length minus offset.

Applies to

.NET 10 и други версии
Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0, 2.1
UWP 10.0