Szerkesztés

Megosztás a következőn keresztül:


WebFaultException Constructors

Definition

Initializes a new instance of the WebFaultException class.

Overloads

WebFaultException(HttpStatusCode)

Initializes a new instance of the WebFaultException class with the specified HttpStatusCode.

WebFaultException(SerializationInfo, StreamingContext)

Initializes a new instance of the WebFaultException class with the specified SerializationInfo and StreamingContext.

WebFaultException(HttpStatusCode)

Initializes a new instance of the WebFaultException class with the specified HttpStatusCode.

public:
 WebFaultException(System::Net::HttpStatusCode statusCode);
public WebFaultException (System.Net.HttpStatusCode statusCode);
new System.ServiceModel.Web.WebFaultException : System.Net.HttpStatusCode -> System.ServiceModel.Web.WebFaultException
Public Sub New (statusCode As HttpStatusCode)

Parameters

statusCode
HttpStatusCode

The HTTP status code to return to the caller.

Applies to

WebFaultException(SerializationInfo, StreamingContext)

Initializes a new instance of the WebFaultException class with the specified SerializationInfo and StreamingContext.

protected:
 WebFaultException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected WebFaultException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.ServiceModel.Web.WebFaultException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.ServiceModel.Web.WebFaultException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The serialization information.

context
StreamingContext

The streaming context.

Applies to