FaultContractInfo 类
定义
表示有关在 FaultContractAttribute 属性中指定的 SOAP 错误的信息。Represents information about a SOAP fault that is specified in a FaultContractAttribute attribute.
public ref class FaultContractInfo
public class FaultContractInfo
type FaultContractInfo = class
Public Class FaultContractInfo
- 继承
-
FaultContractInfo
注解
您可以通过访问 FaultContractInfo 和 ClientOperation.FaultContractInfos 属性来获取 DispatchOperation.FaultContractInfos 对象的集合。You can get a collection of FaultContractInfo objects by accessing the ClientOperation.FaultContractInfos and DispatchOperation.FaultContractInfos properties. FaultContractInfo 类公开 SOAP 错误的操作,以及序列化为 SOAP 错误的详细信息类型。The FaultContractInfo class exposes the action of the SOAP fault and the detail type that is serialized into the SOAP fault.
构造函数
| FaultContractInfo(String, Type) |
初始化使用指定操作和详细信息类型的 FaultContractInfo 类的新实例。Initializes a new instance of the FaultContractInfo class that uses the specified action and detail type. |
属性
| Action |
获取 SOAP 错误操作的值。Gets the SOAP fault action value. |
| Detail |
序列化为 SOAP 错误详细信息的对象的类型。The type of the object that is serialized as the SOAP fault detail. |
方法
| Equals(Object) |
确定指定对象是否等于当前对象。Determines whether the specified object is equal to the current object. (继承自 Object) |
| GetHashCode() |
作为默认哈希函数。Serves as the default hash function. (继承自 Object) |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| ToString() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |