Schema Element for EventClass (ADF)

Contains elements that define event class fields.

语法

<EventClasses>
    <EventClass>
        ...
        <Schema>

Element Characteristics

Characteristic Description

Data type

None.

Default value

None.

Occurrence

Required once per EventClass element.

Updates

Cannot be added or deleted when updating the application.

Element Relationships

Relationship Elements

Parent element

EventClass Element (ADF)

Child elements

Field Element for EventClass/Schema (ADF)

备注

An event class schema defines an event class table in the application database. Notification Services automatically adds ID columns to this definition when creating the database table.

示例

The following example shows a Schema element that creates two event fields: a 10-character stock symbol field, and a stock price field that accepts monetary data.

<Schema>
    <Field>
        <FieldName>StockSymbol</FieldName>
        <FieldType>char(10)</FieldType>
        <FieldTypeMods>NOT NULL</FieldTypeMods>
    </Field>
    <Field>
        <FieldName>StockPrice</FieldName>
        <FieldType>money</FieldType>
        <FieldTypeMods>NOT NULL DEFAULT 10</FieldTypeMods>
    </Field>
</Schema>

请参阅

参考

Application Definition File Reference

其他资源

定义核心事件类属性
更新实例和应用程序

帮助和信息

获取 SQL Server 2005 帮助