編輯

共用方式為


WebServiceErrorEvent Class

Definition

Defines the event that contains information about Web service errors.

public ref class WebServiceErrorEvent : System::Web::Management::WebRequestErrorEvent
public class WebServiceErrorEvent : System.Web.Management.WebRequestErrorEvent
type WebServiceErrorEvent = class
    inherit WebRequestErrorEvent
Public Class WebServiceErrorEvent
Inherits WebRequestErrorEvent
Inheritance

Remarks

The WebServiceErrorEvent event is raised if an error occurs during a Web service request. Your application can use this event to obtain request-related information, which is available by using the WebRequestInformation and the WebThreadInformation classes.

Constructors

WebServiceErrorEvent(String, Object, Exception)

Initializes a new instance of the WebServiceErrorEvent class by using the specified event parameters.

Properties

ErrorException

Gets the Exception associated with the error.

(Inherited from WebBaseErrorEvent)
EventCode

Gets the code value associated with the event.

(Inherited from WebBaseEvent)
EventDetailCode

Gets the event detail code.

(Inherited from WebBaseEvent)
EventID

Gets the identifier associated with the event.

(Inherited from WebBaseEvent)
EventOccurrence

Gets a counter that represents the number of times the event has occurred.

(Inherited from WebBaseEvent)
EventSequence

Gets the number of times the event has been raised by the application.

(Inherited from WebBaseEvent)
EventSource

Gets the object that raises the event.

(Inherited from WebBaseEvent)
EventTime

Gets the time when the event was raised.

(Inherited from WebBaseEvent)
EventTimeUtc

Gets the time when the event was raised.

(Inherited from WebBaseEvent)
Message

Gets the message that describes the event.

(Inherited from WebBaseEvent)
ProcessInformation

Gets information about the ASP.NET application-hosting process.

(Inherited from WebManagementEvent)
RequestInformation

Gets the application request information.

(Inherited from WebRequestErrorEvent)
ThreadInformation

Gets the application thread information.

(Inherited from WebRequestErrorEvent)
WebServiceErrorEventCode

Gets the code number that is associated with the current error event.

Methods

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FormatCustomEventDetails(WebEventFormatter)

Provides standard formatting of the event information.

(Inherited from WebBaseEvent)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
IncrementPerfCounters()

Used internally to increment the relevant performance counters.

(Inherited from WebRequestErrorEvent)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Raise()

Raises an event by notifying any configured provider that the event has occurred.

(Inherited from WebBaseEvent)
ToString()

Formats event information for display purposes.

(Inherited from WebBaseEvent)
ToString(Boolean, Boolean)

Formats event information for display purposes.

(Inherited from WebBaseEvent)

Applies to