XmlDictionaryReader.ReadString Method

Definition

Reads the contents of the current node into a string.

Overloads

ReadString(Int32)

Reads the contents of the current node into a string with a given maximum length.

ReadString()

Reads the contents of the current node into a string.

ReadString(Int32)

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

Reads the contents of the current node into a string with a given maximum length.

C#
protected string ReadString(int maxStringContentLength);

Parameters

maxStringContentLength
Int32

Maximum allowed string length.

Returns

A string that contains the contents of the current node.

Exceptions

Unable to read the contents of the current node.

Maximum allowed string length exceeded.

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 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

ReadString()

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

Reads the contents of the current node into a string.

C#
public override string ReadString();

Returns

A string that contains the contents of the current node.

Exceptions

Unable to read the contents of the current node.

Maximum allowed string length exceeded.

Applies to

.NET 10 i druge verzije
Proizvod Verzije
.NET 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