Share via


EventMappingSettings.EndEventCode 屬性

定義

取得或設定範圍的結束事件程式碼。

public:
 property int EndEventCode { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("endEventCode", DefaultValue=2147483647)]
[System.Configuration.IntegerValidator(MinValue=0)]
public int EndEventCode { get; set; }
[<System.Configuration.ConfigurationProperty("endEventCode", DefaultValue=2147483647)>]
[<System.Configuration.IntegerValidator(MinValue=0)>]
member this.EndEventCode : int with get, set
Public Property EndEventCode As Integer

屬性值

範圍的結束事件程式碼。 預設值為 Int32.MaxValue

屬性

範例

下列程式碼範例示範如何使用 EndEventCode 屬性。 此程式碼範例是提供給 類別之較大範例的 HealthMonitoringSection 一部分。

eventMappingSetting.EndEventCode = 4096;
eventMappingSetting.EndEventCode = 4096

備註

事件代碼會對應至 物件中 WebEventCodes 常數所定義的事件。 對應會使用與 StartEventCodeEndEventCode 屬性指定的範圍。

適用於

另請參閱