Class XamlReader
Implements
Inherited Members
Namespace: System.Xaml
Assembly: OpenSilver.Xaml.dll
Syntax
public abstract class XamlReader : IDisposable
Properties
| Improve this Doc View SourceIsDisposed
Gets whether Dispose(Boolean) has been called.
Declaration
protected bool IsDisposed { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if Dispose(Boolean) has been called; otherwise, false. |
IsEof
When implemented in a derived class, gets a value that reports whether the reader position is at end of file.
Declaration
public abstract bool IsEof { get; }
Property Value
Type | Description |
---|---|
System.Boolean | true if the position is at the conceptual end of file of the XAML node stream; otherwise, false. |
Member
When implemented in a derived class, gets the current member at the reader position, if the reader position is on a StartMember.
Declaration
public abstract XamlMember Member { get; }
Property Value
Type | Description |
---|---|
XamlMember | The current member; or null if the position is not on a member. |
Namespace
When implemented in a derived class, gets the XAML namespace information from the current node.
Declaration
public abstract NamespaceDeclaration Namespace { get; }
Property Value
Type | Description |
---|---|
NamespaceDeclaration | The XAML namespace information, if it is available; otherwise, null. |
NodeType
When implemented in a derived class, gets the type of the current node.
Declaration
public abstract XamlNodeType NodeType { get; }
Property Value
Type | Description |
---|---|
XamlNodeType | A value of the XamlNodeType enumeration. |
SchemaContext
When implemented in a derived class, gets an object that provides XAML schema context information for the information set.
Declaration
public abstract XamlSchemaContext SchemaContext { get; }
Property Value
Type | Description |
---|---|
XamlSchemaContext | An object that provides XAML schema context information for the information set. |
Type
When implemented in a derived class, gets the XamlType of the current node.
Declaration
public abstract XamlType Type { get; }
Property Value
Type | Description |
---|---|
XamlType | The XamlType of the current node; or null, if the current reader position is not on an object. |
Value
When implemented in a derived class, gets the value of the current node.
Declaration
public abstract object Value { get; }
Property Value
Type | Description |
---|---|
System.Object | The value of the current node; or null, if the current reader position is not on a Value node type. |
Methods
| Improve this Doc View SourceClose()
Declaration
public void Close()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Read()
Declaration
public abstract bool Read()
Returns
Type | Description |
---|---|
System.Boolean |
ReadSubtree()
Returns a XamlReader based on the current XamlReader, where the returned XamlReader is used to iterate through a subtree of the XAML node structure.
Declaration
public virtual XamlReader ReadSubtree()
Returns
Type | Description |
---|---|
XamlReader | A new XAML reader instance for the subtree. |
Skip()
Declaration
public virtual void Skip()
Explicit Interface Implementations
| Improve this Doc View SourceIDisposable.Dispose()
Releases all resources used by the current instance of the XamlReader class.
Declaration
void IDisposable.Dispose()