Warning Class

Definition

表示在发布或处理报表时返回的错误或警告的列表。Represents a list of errors or warnings that are returned when a report is published or processed.

public ref class Warning
public class Warning
type Warning = class
Public Class Warning
Inheritance
Warning

Remarks

Warning对象作为由 CreateReport 、、 CreateReportHistorySnapshot RenderSetReportDefinition 方法的输出返回。A Warning object is returned as output by the CreateReport, CreateReportHistorySnapshot, Render, and SetReportDefinition methods.

Constructors

Warning()

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

Properties

Code

获取或设置 Report Server 分配给警告的错误代码。Gets or sets the error code that is assigned to the warning by the report server. 只读。Read-only.

Message

获取或设置描述错误或警告的消息。Gets or sets a message that describes the error or warning. 只读。Read-only.

ObjectName

获取或设置报表定义中造成警告的对象的名称。Gets or sets the name of the object in the report definition that contributed to the warning. 只读。Read-only.

ObjectType

获取或设置报表定义中造成错误或警告的对象的类型。Gets or sets the type of object in the report definition that caused the error or warning. 只读。Read-only.

Severity

获取或设置错误或警告的严重性类型。Gets or sets the severity type of the error or warning. 只读。Read-only.

Applies to