0 out of 1 rated this helpful - Rate this topic

XamlXmlReader Class

Processes XAML markup from XML files by using an XmlReader intermediary, and produces a XAML node stream.

System.Object
  System.Xaml.XamlReader
    System.Xaml.XamlXmlReader

Namespace:  System.Xaml
Assembly:  System.Xaml (in System.Xaml.dll)
public class XamlXmlReader : XamlReader, 
	IXamlLineInfo

The XamlXmlReader type exposes the following members.

  Name Description
Public method XamlXmlReader(Stream) Initializes a new instance of the XamlXmlReader class, based on a stream.
Public method XamlXmlReader(String) Initializes a new instance of the XamlXmlReader class, based on a file name of a file to load into a default XML reader.
Public method XamlXmlReader(TextReader) Initializes a new instance of the XamlXmlReader class, based on a TextReader.
Public method XamlXmlReader(XmlReader) Initializes a new instance of the XamlXmlReader class using the provided XmlReader.
Public method XamlXmlReader(Stream, XamlSchemaContext) Initializes a new instance of the XamlXmlReader class, based on a stream, and using a supplied XAML schema context.
Public method XamlXmlReader(Stream, XamlXmlReaderSettings) Initializes a new instance of the XamlXmlReader class, based on a stream, with XAML-specific settings.
Public method XamlXmlReader(String, XamlSchemaContext) Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, with a supplied XAML schema context.
Public method XamlXmlReader(String, XamlXmlReaderSettings) Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, and using XAML-specific reader settings.
Public method XamlXmlReader(TextReader, XamlSchemaContext) Initializes a new instance of the XamlXmlReader class, based on a TextReader, with a supplied schema context and XAML-specific settings.
Public method XamlXmlReader(TextReader, XamlXmlReaderSettings) Initializes a new instance of the XamlXmlReader class, based on a TextReader, and using XAML-specific settings.
Public method XamlXmlReader(XmlReader, XamlSchemaContext) Initializes a new instance of the XamlXmlReader class using the provided XmlReader and schema context.
Public method XamlXmlReader(XmlReader, XamlXmlReaderSettings) Initializes a new instance of the XamlXmlReader class, using the provided XmlReader and reader settings.
Public method XamlXmlReader(Stream, XamlSchemaContext, XamlXmlReaderSettings) Initializes a new instance of the XamlXmlReader class, based on a stream, with a supplied XAML schema context and XAML-specific settings.
Public method XamlXmlReader(String, XamlSchemaContext, XamlXmlReaderSettings) Initializes a new instance of the XamlXmlReader class, based on the file name of a file to load into a default XML reader, and using a supplied XAML schema context and XAML-specific reader settings.
Public method XamlXmlReader(TextReader, XamlSchemaContext, XamlXmlReaderSettings) Initializes a new instance of the XamlXmlReader class, based on a TextReader, and using a supplied schema context and XAML-specific settings.
Public method XamlXmlReader(XmlReader, XamlSchemaContext, XamlXmlReaderSettings) Initializes a new instance of the XamlXmlReader class using the provided XmlReader, schema context, and reader settings.
Top
  Name Description
Public property HasLineInfo Gets a value that specifies whether line information is available.
Protected property IsDisposed Gets whether Dispose has been called. (Inherited from XamlReader.)
Public property IsEof Gets a value that reports whether the reader position in the XAML node stream is at end-of-file. (Overrides XamlReader.IsEof.)
Public property LineNumber Gets the line number to report.
Public property LinePosition Gets the line position to report.
Public property Member Gets the current member at the reader position, if the current reader position is on a StartMember. (Overrides XamlReader.Member.)
Public property Namespace Gets the XAML namespace from the current node. (Overrides XamlReader.Namespace.)
Public property NodeType Gets the type of the current node. (Overrides XamlReader.NodeType.)
Public property SchemaContext Gets an object that provides schema information for the information set. (Overrides XamlReader.SchemaContext.)
Public property Type Gets the XamlType of the current node. (Overrides XamlReader.Type.)
Public property Value Gets the value of the current node. (Overrides XamlReader.Value.)
Top
  Name Description
Public method Close Closes the XAML node stream. (Inherited from XamlReader.)
Protected method Dispose Releases the unmanaged resources used by the XamlReader, and optionally, releases the managed resources. (Inherited from XamlReader.)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Read Provides the next XAML node from the loaded source, if a XAML node is available. (Overrides XamlReader.Read().)
Public method ReadSubtree Returns a XamlReader that is based on the current XamlReader, where the returned XamlReader is used to iterate through a subtree of the XAML node structure. (Inherited from XamlReader.)
Public method Skip Skips the current node and advances the reader position to the next node. (Inherited from XamlReader.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
  Name Description
Explicit interface implemetation Private method IDisposable.Dispose Infrastructure. Releases all resources used by the current instance of the XamlReader class. (Inherited from XamlReader.)
Top

When you construct a XamlXmlReader, an XmlReader is required. The purpose of this design is to use established Microsoft .NET Framework APIs for XML processing in order to handle stream input, to obtain a stream from a file, and so on.

XmlReader is the first component of the standard load path for XAML operations and is incorporated by XamlServices.Load as well as by several existing framework XAML implementations for loading XAML.

.NET Framework

Supported in: 4

.NET Framework Client Profile

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ