XamlWriter Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides default implementation and base class definitions for a XAML writer. This is not a working default XAML writer; you must either derive from XamlWriter and implement its abstract members, or use an existing XamlWriter derived class.
public ref class XamlWriter abstract : IDisposable
public abstract class XamlWriter : IDisposable
type XamlWriter = class
interface IDisposable
Public MustInherit Class XamlWriter
Implements IDisposable
- Inheritance
-
XamlWriter
- Derived
- Implements
The two most relevant practical derived classes of XamlWriter are the XamlXmlWriter and XamlObjectWriter classes, as the following details explain:
XamlXmlWriter processes a XAML node set and produces an XML text file. This class might be used for serialization or as part of the function of a tool that works with in-memory representation of XAML and produces XAML file output.
XamlObjectWriter processes a XAML node set and produces an object graph. This class might be used as part of a full or partial customization of a technology's XAML parser.
XamlWriterSettings is a class for settings that are used by a XamlWriter; however, by default, the XamlWriterSettings class does not hold any specific settings. The XamlWriter base constructor does not use this settings class as an argument, nor does any other XamlWriter member. Instead, the XamlXmlWriter and XamlObjectWriter classes include their own settings classes as construction arguments. These settings classes are XamlXmlWriterSettings and XamlObjectWriterSettings. The settings classes define actual settings values and are based on XamlWriterSettings, so that they can use the XamlWriterSettings merge feature.
Xaml |
Initializes a new instance of the XamlWriter class. |
Is |
Gets whether Dispose(Boolean) has been called. |
Schema |
When implemented in a derived class, gets the active XAML schema context. |
Close() |
Closes the XAML writer object. |
Dispose(Boolean) |
Releases the unmanaged resources used by the XamlWriter and optionally releases the managed resources. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Write |
When implemented in a derived class, produces the representation of an end member node. |
Write |
When implemented in a derived class, produces the representation of an end object node. |
Write |
When implemented in a derived class, produces an object for cases where the object is a default or implicit value of the property being set, instead of being specified as a discrete object value in the input XAML node set. |
Write |
When implemented in a derived class, writes a XAML namespace declaration node. |
Write |
Performs switching based on node type from the XAML reader (NodeType) and calls the relevant |
Write |
When implemented in a derived class, writes the representation of a start member node. |
Write |
When implemented in a derived class, writes the representation of a start object node. |
Write |
When implemented in a derived class, writes a value node. |
Produto | Versões |
---|---|
.NET Framework | 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 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: