WebHeartbeatEvent(String, Int32) 构造函数

定义

使用给定的消息和事件代码初始化 WebHeartbeatEvent 类的新实例。Initializes a new instance of the WebHeartbeatEvent class with the given message and event code.

protected public:
 WebHeartbeatEvent(System::String ^ message, int eventCode);
protected internal WebHeartbeatEvent (string message, int eventCode);
new System.Web.Management.WebHeartbeatEvent : string * int -> System.Web.Management.WebHeartbeatEvent
Protected Friend Sub New (message As String, eventCode As Integer)

参数

message
String

事件的说明。The description of the event.

eventCode
Int32

与该事件关联的代码。The code associated with the event. 实现自定义事件时,事件代码必须大于 WebExtendedBaseWhen you implement a custom event, the event code must be greater than WebExtendedBase.

适用于