Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ReadContentAsString Method (String[], Int32)

XmlDictionaryReader.ReadContentAsString Method (String[], Int32)

Converts a node's content to a string.

Namespace:  System.Xml
Assemblies:   System.Runtime.Serialization (in System.Runtime.Serialization.dll)
  System.Runtime.Serialization.Xml (in System.Runtime.Serialization.Xml.dll)

abstract ReadContentAsString : 
        strings:string[] * 
        index:int byref -> string  
override ReadContentAsString : 
        strings:string[] * 
        index:int byref -> string


Type: System.String[]

The array of strings to match content against.

Type: System.Int32

The index of the entry in strings that matches the content.

Return Value

Type: System.String
The node content in a string representation.


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


An entry in strings is a null reference (Nothing in Visual Basic).

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Phone apps

Supported in: Windows Phone 8.1, Windows Phone Silverlight 8.1, Windows Phone Silverlight 8

Portable Class Library

Supported in: Portable Class Library
© 2015 Microsoft