FaultException<TDetail> Constructor (TDetail)
.NET Framework (current version)
Initializes a new instance of the FaultException<TDetail> class that uses the specified detail object.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The detail object must be serializable or an exception is thrown when the FaultException<TDetail> is serialized.
The following code example shows how a service uses the FaultException<TDetail> type to throw a managed exception that gets converted into the SOAP fault specified by the FaultContractAttribute.
.NET Framework
Available since 3.0
Available since 3.0
Show: