XmlDictionaryReader.ReadContentAs Method

Converts a node's content to a specified type.

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

public override Object ReadContentAs (
	Type type,
	IXmlNamespaceResolver namespaceResolver
public Object ReadContentAs (
	Type type, 
	IXmlNamespaceResolver namespaceResolver
public override function ReadContentAs (
	type : Type, 
	namespaceResolver : IXmlNamespaceResolver
) : Object
Not applicable.



The Type of the value to be returned.


An IXmlNamespaceResolver object that is used to resolve any namespace prefixes related to type conversion. For example, this can be used when converting an XmlQualifiedName object to an xs:string. This value can be a null reference.

Return Value

The concatenated text content or attribute value converted to the requested type.

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