XData 类

定义

表示可显示为 Value 节点的值的 literal 数据。Represents literal data that can appear as the value for a Value node.

public ref class XData sealed
[System.Windows.Markup.ContentProperty("Text")]
public sealed class XData
type XData = class
Public NotInheritable Class XData
继承
XData
属性

注解

Text是的 XAML 内容属性XDataText is the XAML content property for XData. 若要从返回的 XAML 节点流XData中读取值, 请Text获取属性值。To read values from out of a XAML node stream where XData is returned, get the Text property value.

编码注意事项在顶级 XML 上声明, 默认情况下通常为 UTF-8。Encoding considerations are declared at top-level XML, and are generally UTF-8 by default.

构造函数

XData()

初始化 XData 类的新实例。Initializes a new instance of the XData class.

属性

Text

获取或设置此 XData 包装的文本值字符串。Gets or sets the literal value string that this XData wraps.

XmlReader

获取或设置 literal 数据的读取器。Gets or sets a reader for the literal data.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅