﻿<?xml version="1.0" encoding="utf-8"?><Type Name="FaultException&lt;TDetail&gt;" FullName="System.ServiceModel.FaultException&lt;TDetail&gt;"><TypeSignature Language="C#" Value="public class FaultException&lt;TDetail&gt; : System.ServiceModel.FaultException" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit FaultException`1&lt;TDetail&gt; extends System.ServiceModel.FaultException" /><AssemblyInfo><AssemblyName>System.ServiceModel</AssemblyName><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><TypeParameters><TypeParameter Name="TDetail" /></TypeParameters><Base><BaseTypeName>System.ServiceModel.FaultException</BaseTypeName></Base><Interfaces /><Docs><typeparam name="TDetail">To be added.</typeparam><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Catch the <see cref="T:System.ServiceModel.FaultException`1" /> object in a indigo1 client application to handle a SOAP fault that has been contractually specified in an operation contract.</para><para>Typical deployed services use the <see cref="T:System.ServiceModel.FaultContractAttribute" /> to formally specify all SOAP faults that a client can expect to receive in the normal course of an operation. Error information in a <see cref="T:System.ServiceModel.FaultContractAttribute" /> appears as a <see cref="T:System.ServiceModel.FaultException`1" /> (where the type parameter is the serializable error object specified in the operation's <see cref="T:System.ServiceModel.FaultContractAttribute" />) when it arrives at a client application. The <see cref="T:System.ServiceModel.FaultContractAttribute" /> can be used to specify SOAP faults for both two-way service methods and for asynchronous method pairs. </para><para>Because <see cref="T:System.ServiceModel.FaultException`1" /> is both a <see cref="T:System.ServiceModel.FaultException" /> and therefore a <see cref="T:System.ServiceModel.CommunicationException" />, to catch specified SOAP faults make sure you catch the <see cref="T:System.ServiceModel.FaultException`1" /> types prior to the <see cref="T:System.ServiceModel.FaultException" /> and <see cref="T:System.ServiceModel.CommunicationException" /> types or handle the specified exceptions in one of those exception handlers.</para><block subset="none" type="note"><para>If you use <see cref="T:System.ServiceModel.FaultContractAttribute" /> to specify a <see cref="T:System.ServiceModel.FaultException`1" /> where the type parameter is a <see cref="T:System.String" />, the string value is assigned to the <see cref="P:System.ServiceModel.FaultException`1.Detail" /> property in the client application; clients cannot retrieve that string by calling the <see cref="M:System.ServiceModel.FaultException`1.ToString" /> method. To have the string value returned when the client application calls <see cref="M:System.Exception.ToString" />, throw a <see cref="T:System.ServiceModel.FaultException" /> exception inside the operation and pass the string to the constructor. <br />In general, it is recommended that detail types be custom serializable types appropriate to the fault and not a <see cref="T:System.String" />.</para></block></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Used in a client application to catch contractually-specified SOAP faults.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (TDetail detail);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(!TDetail detail) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="detail" Type="TDetail" /></Parameters><Docs><param name="detail">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="protected FaultException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);" /><MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(class System.Runtime.Serialization.SerializationInfo info, valuetype System.Runtime.Serialization.StreamingContext context) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="info" Type="System.Runtime.Serialization.SerializationInfo" /><Parameter Name="context" Type="System.Runtime.Serialization.StreamingContext" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.ServiceModel.FaultException`1" /> class using the specified serialization information and context when deserializing a stream into a <see cref="T:System.ServiceModel.FaultException" /> object.</para></summary><param name="info"><attribution license="cc4" from="Microsoft" modified="false" />The serialization information necessary to reconstruct the <see cref="T:System.ServiceModel.FaultException" /> object from the <paramref name="context" />.</param><param name="context"><attribution license="cc4" from="Microsoft" modified="false" />The stream from which to reconstruct the <see cref="T:System.ServiceModel.FaultException" /> object.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (TDetail detail, System.ServiceModel.FaultReason reason);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(!TDetail detail, class System.ServiceModel.FaultReason reason) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="detail" Type="TDetail" /><Parameter Name="reason" Type="System.ServiceModel.FaultReason" /></Parameters><Docs><param name="detail">To be added.</param><param name="reason">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (TDetail detail, string reason);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(!TDetail detail, string reason) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="detail" Type="TDetail" /><Parameter Name="reason" Type="System.String" /></Parameters><Docs><param name="detail">To be added.</param><param name="reason">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (TDetail detail, System.ServiceModel.FaultReason reason, System.ServiceModel.FaultCode code);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(!TDetail detail, class System.ServiceModel.FaultReason reason, class System.ServiceModel.FaultCode code) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="detail" Type="TDetail" /><Parameter Name="reason" Type="System.ServiceModel.FaultReason" /><Parameter Name="code" Type="System.ServiceModel.FaultCode" /></Parameters><Docs><param name="detail">To be added.</param><param name="reason">To be added.</param><param name="code">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (TDetail detail, string reason, System.ServiceModel.FaultCode code);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(!TDetail detail, string reason, class System.ServiceModel.FaultCode code) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="detail" Type="TDetail" /><Parameter Name="reason" Type="System.String" /><Parameter Name="code" Type="System.ServiceModel.FaultCode" /></Parameters><Docs><param name="detail">To be added.</param><param name="reason">To be added.</param><param name="code">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (TDetail detail, System.ServiceModel.FaultReason reason, System.ServiceModel.FaultCode code, string action);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(!TDetail detail, class System.ServiceModel.FaultReason reason, class System.ServiceModel.FaultCode code, string action) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="detail" Type="TDetail" /><Parameter Name="reason" Type="System.ServiceModel.FaultReason" /><Parameter Name="code" Type="System.ServiceModel.FaultCode" /><Parameter Name="action" Type="System.String" /></Parameters><Docs><param name="detail">To be added.</param><param name="reason">To be added.</param><param name="code">To be added.</param><param name="action">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (TDetail detail, string reason, System.ServiceModel.FaultCode code, string action);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(!TDetail detail, string reason, class System.ServiceModel.FaultCode code, string action) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="detail" Type="TDetail" /><Parameter Name="reason" Type="System.String" /><Parameter Name="code" Type="System.ServiceModel.FaultCode" /><Parameter Name="action" Type="System.String" /></Parameters><Docs><param name="detail">To be added.</param><param name="reason">To be added.</param><param name="code">To be added.</param><param name="action">To be added.</param><summary>To be added.</summary><remarks>To be added.</remarks></Docs></Member><Member MemberName="CreateMessageFault"><MemberSignature Language="C#" Value="public override System.ServiceModel.Channels.MessageFault CreateMessageFault ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance class System.ServiceModel.Channels.MessageFault CreateMessageFault() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.ServiceModel.Channels.MessageFault</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Creates a <see cref="T:System.ServiceModel.Channels.MessageFault" /> object that can be used to create a <see cref="T:System.ServiceModel.Channels.Message" /> that represents the SOAP fault.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The message fault created.</para></returns></Docs></Member><Member MemberName="Detail"><MemberSignature Language="C#" Value="public TDetail Detail { get; }" /><MemberSignature Language="ILAsm" Value=".property instance !TDetail Detail" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>TDetail</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the object that contains the detail information of the fault condition.</para></summary></Docs></Member><Member MemberName="GetObjectData"><MemberSignature Language="C#" Value="public override void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance void GetObjectData(class System.Runtime.Serialization.SerializationInfo info, valuetype System.Runtime.Serialization.StreamingContext context) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Void</ReturnType></ReturnValue><Parameters><Parameter Name="info" Type="System.Runtime.Serialization.SerializationInfo" /><Parameter Name="context" Type="System.Runtime.Serialization.StreamingContext" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Implementation of the <see cref="M:System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)" /> method that is called when the object is serialized into a stream.</para></summary><param name="info"><attribution license="cc4" from="Microsoft" modified="false" />The serialization information to which the object data is added when serialized.</param><param name="context"><attribution license="cc4" from="Microsoft" modified="false" />The destination for the serialized object.</param></Docs></Member><Member MemberName="ToString"><MemberSignature Language="C#" Value="public override string ToString ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a string for the <see cref="T:System.ServiceModel.FaultException`1" /> object.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The string for the SOAP fault.</para></returns></Docs></Member></Members></Type>