WebFaultException Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈