WebBaseEvent.EventCode 属性

定义

获取与该事件关联的代码值。Gets the code value associated with the event.

public:
 property int EventCode { int get(); };
public int EventCode { get; }
member this.EventCode : int
Public ReadOnly Property EventCode As Integer

属性值

Int32

WebEventCodes 值之一。One of the WebEventCodes values.

示例

下面的代码示例演示如何获取事件代码。The following code example shows how to obtain the event code.

// Get the event code.
eCode = EventCode;
' Get the event code.
eCode = EventCode

注解

相关值中包含有关事件的详细信息 MessageMore information about the event is contained in the related Message value.

备注

如果从 WebBaseEvent 类继承,则为自定义事件指定的事件代码必须大于 WebExtendedBaseIf you inherit from the WebBaseEvent class, the event code you specify for your custom event must be greater than WebExtendedBase.

适用于

另请参阅