XamlLoadErrorInfo 类

定义

包含有关 XAML 读取器在加载 XML 文件时所生成错误的信息,其中包括文件名以及文件中发生错误的位置。Contains information about the error generated by the XAML Reader when loading an XML file, including the name of the file and the location in the file where the error occurred.

public ref class XamlLoadErrorInfo
[System.Serializable]
public class XamlLoadErrorInfo
[<System.Serializable>]
type XamlLoadErrorInfo = class
Public Class XamlLoadErrorInfo
继承
XamlLoadErrorInfo
属性

构造函数

XamlLoadErrorInfo(String, Int32, Int32)

使用有关错误的指定消息以及加载的 XAML 文件中发生错误的行号和位置创建 XamlLoadErrorInfo 的实例。Creates an instance of a XamlLoadErrorInfo with a specified message about the error and with the line number and position in the XAML file loaded where the error occurred.

属性

FileName

获取或设置发生加载错误的 XAML 文件的名称。Gets or sets the name of the XAML file in which the load error occurred.

LineNumber

获取或设置 XAML 文件发生加载错误的行号。Gets or sets the line number of the XAML file where the load error occurred.

LinePosition

获取或设置 XAML 文件发生加载错误的行位置。Gets or sets the line position of the XAML file where the load error occurred.

Message

获取或设置有关 XAML 读取器在加载 XML 文件时所生成错误的信息。Gets or sets information about the error generated by the XAML Reader when loading an XML file.

方法

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()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)

适用于