﻿<?xml version="1.0" encoding="utf-8"?><Type Name="FaultException" FullName="System.ServiceModel.FaultException"><TypeSignature Language="C#" Value="public class FaultException : System.ServiceModel.CommunicationException" /><TypeSignature Language="ILAsm" Value=".class public auto ansi serializable beforefieldinit FaultException extends System.ServiceModel.CommunicationException" /><AssemblyInfo><AssemblyName>System.ServiceModel</AssemblyName><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.ServiceModel.CommunicationException</BaseTypeName></Base><Interfaces /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>In a service, use the <see cref="T:System.ServiceModel.FaultException" /> class to create an untyped fault to return to the client for debugging purposes.</para><para>In a client, catch <see cref="T:System.ServiceModel.FaultException" /> objects to handle unknown or generic faults, such as those returned by a service with the <see cref="P:System.ServiceModel.ServiceBehaviorAttribute.IncludeExceptionDetailInFaults" /> property set to true. Because <see cref="T:System.ServiceModel.FaultException" /> extends <see cref="T:System.ServiceModel.CommunicationException" />, remember to catch any <see cref="T:System.ServiceModel.FaultException" /> objects prior to catching <see cref="T:System.ServiceModel.CommunicationException" /> objects if you want to catch them separately.</para><block subset="none" type="note"><para>Duplex services can also catch <see cref="T:System.ServiceModel.FaultException" /> objects returned from their interaction with a duplex client.</para></block><para>In general, it is strongly recommended that you use the <see cref="T:System.ServiceModel.FaultContractAttribute" /> to design your services to return strongly-typed SOAP faults (and not managed exception objects) for all fault cases in which you decide the client requires fault information. However, use the <see cref="T:System.ServiceModel.FaultException" /> in the following situations:</para><list type="bullet"><item><para>To send SOAP faults from a service for debugging purposes.</para></item><item><para>To catch SOAP faults on a client when the faults are not part of the service contract.</para></item></list><para>Throw <see cref="T:System.ServiceModel.FaultException" /> objects when you want the string to be passed to the constructor and retrieved by the client by calling the <see cref="M:System.ServiceModel.FaultException`1.ToString" /> method. If you specify a fault contract of type <see cref="T:System.ServiceModel.FaultException`1" /> where the type parameter is <see cref="T:System.String" />, the string value is available as the <see cref="P:System.ServiceModel.FaultException`1.Detail" /> property and not by calling <see cref="M:System.ServiceModel.FaultException`1.ToString" />.</para><para>For details, see <format type="text/html"><a href="a9696563-d404-4905-942d-1e0834c26dea">Handling Faults in Windows Communication Foundation Contracts</a></format>.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents a SOAP fault.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><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" /> class.  </para></summary></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (System.ServiceModel.Channels.MessageFault fault);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ServiceModel.Channels.MessageFault fault) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="fault" Type="System.ServiceModel.Channels.MessageFault" /></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" /> class using the specified message fault values.</para></summary><param name="fault"><attribution license="cc4" from="Microsoft" modified="false" />The message fault that contains the default SOAP fault values.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (System.ServiceModel.FaultReason reason);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ServiceModel.FaultReason reason) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="reason" Type="System.ServiceModel.FaultReason" /></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" /> class using the specified reason.</para></summary><param name="reason"><attribution license="cc4" from="Microsoft" modified="false" />The reason for the SOAP fault.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (string msg);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string msg) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="msg" Type="System.String" /></Parameters><Docs><param name="msg">To be added.</param><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" /> class with the specified fault reason.</para></summary></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" /> 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 a stream.</param><param name="context"><attribution license="cc4" from="Microsoft" modified="false" />The streaming context required to reconstruct the <see cref="T:System.ServiceModel.FaultException" /> object.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (System.ServiceModel.Channels.MessageFault fault, string action);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.ServiceModel.Channels.MessageFault fault, string action) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="fault" Type="System.ServiceModel.Channels.MessageFault" /><Parameter Name="action" Type="System.String" /></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" /> class using the specified message fault values and the provided action string.</para></summary><param name="fault"><attribution license="cc4" from="Microsoft" modified="false" />The message fault that contains the default SOAP fault values to use.</param><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The action of the SOAP fault.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (System.ServiceModel.FaultReason reason, System.ServiceModel.FaultCode code);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(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="reason" Type="System.ServiceModel.FaultReason" /><Parameter Name="code" Type="System.ServiceModel.FaultCode" /></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" /> class using the specified reason and fault code.</para></summary><param name="reason"><attribution license="cc4" from="Microsoft" modified="false" />The reason for the SOAP fault.</param><param name="code"><attribution license="cc4" from="Microsoft" modified="false" />The fault code for the SOAP fault.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (string msg, System.ServiceModel.FaultCode code);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string msg, class System.ServiceModel.FaultCode code) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="msg" Type="System.String" /><Parameter Name="code" Type="System.ServiceModel.FaultCode" /></Parameters><Docs><param name="msg">To be added.</param><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" /> class using the specified reason and SOAP fault code.</para></summary><param name="code"><attribution license="cc4" from="Microsoft" modified="false" />The SOAP fault code for the fault.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (System.ServiceModel.FaultReason reason, System.ServiceModel.FaultCode code, string action);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(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="reason" Type="System.ServiceModel.FaultReason" /><Parameter Name="code" Type="System.ServiceModel.FaultCode" /><Parameter Name="action" Type="System.String" /></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" /> class using the specified reason, fault code, and action value.</para></summary><param name="reason"><attribution license="cc4" from="Microsoft" modified="false" />The reason for the SOAP fault.</param><param name="code"><attribution license="cc4" from="Microsoft" modified="false" />The fault code for the SOAP fault.</param><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The action value for the SOAP fault.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public FaultException (string reason, System.ServiceModel.FaultCode code, string action);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(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="reason" Type="System.String" /><Parameter Name="code" Type="System.ServiceModel.FaultCode" /><Parameter Name="action" Type="System.String" /></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" /> class using the specified reason, fault code, and action value.</para></summary><param name="reason"><attribution license="cc4" from="Microsoft" modified="false" />The reason for the SOAP fault.</param><param name="code"><attribution license="cc4" from="Microsoft" modified="false" />The fault code for the SOAP fault.</param><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The action value for the SOAP fault.</param></Docs></Member><Member MemberName="Action"><MemberSignature Language="C#" Value="public string Action { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string Action" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the value of the SOAP action for the fault message.</para></summary></Docs></Member><Member MemberName="Code"><MemberSignature Language="C#" Value="public System.ServiceModel.FaultCode Code { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.ServiceModel.FaultCode Code" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.ServiceModel.FaultCode</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the fault code for the SOAP fault.</para></summary></Docs></Member><Member MemberName="CreateFault"><MemberSignature Language="C#" Value="public static System.ServiceModel.FaultException CreateFault (System.ServiceModel.Channels.MessageFault fault, Type[] details);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.ServiceModel.FaultException CreateFault(class System.ServiceModel.Channels.MessageFault fault, class System.Type[] details) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.ServiceModel.FaultException</ReturnType></ReturnValue><Parameters><Parameter Name="fault" Type="System.ServiceModel.Channels.MessageFault" /><Parameter Name="details" Type="System.Type[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><param name="fault">To be added.</param><param name="details">To be added.</param><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <paramref name="faultDetailTypes" /> parameter contains candidate detail types. If any of the <paramref name="faultDetailTypes" /> has a schema that matches the <paramref name="messageFault" /> parameter, a <see cref="T:System.ServiceModel.FaultException`1" /> is returned where the type parameter is the matching candidate type.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a <see cref="T:System.ServiceModel.Channels.FaultException" /> object from the specified message fault and an array of detail types.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.ServiceModel.FaultException" /> object that you can throw to indicate that a SOAP fault message was received.</para></returns></Docs></Member><Member MemberName="CreateFault"><MemberSignature Language="C#" Value="public static System.ServiceModel.FaultException CreateFault (System.ServiceModel.Channels.MessageFault messageFault, string action, Type[] faultDetailTypes);" /><MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.ServiceModel.FaultException CreateFault(class System.ServiceModel.Channels.MessageFault messageFault, string action, class System.Type[] faultDetailTypes) cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.ServiceModel.FaultException</ReturnType></ReturnValue><Parameters><Parameter Name="messageFault" Type="System.ServiceModel.Channels.MessageFault" /><Parameter Name="action" Type="System.String" /><Parameter Name="faultDetailTypes" Type="System.Type[]"><Attributes><Attribute><AttributeName>System.ParamArray</AttributeName></Attribute></Attributes></Parameter></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <paramref name="faultDetailTypes" /> parameter contains candidate detail types. If any of the <paramref name="faultDetailTypes" /> has a schema that matches the <paramref name="messageFault" /> parameter, a <see cref="T:System.ServiceModel.FaultException`1" /> is returned where the type parameter is the matching candidate type.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Returns a <see cref="T:System.ServiceModel.Channels.FaultException" /> object from the specified message fault, action and an array of detail types.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.ServiceModel.FaultException" /> object that you can throw to indicate that a SOAP fault message was received.</para></returns><param name="messageFault"><attribution license="cc4" from="Microsoft" modified="false" />The message fault that contains default SOAP fault information.</param><param name="action"><attribution license="cc4" from="Microsoft" modified="false" />The fault action value.</param><param name="faultDetailTypes"><attribution license="cc4" from="Microsoft" modified="false" />An array of types that contains fault details.</param></Docs></Member><Member MemberName="CreateMessageFault"><MemberSignature Language="C#" Value="public virtual System.ServiceModel.Channels.MessageFault CreateMessageFault ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig newslot 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>Returns a <see cref="T:System.ServiceModel.Channels.MessageFault" /> object.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>The in-memory representation of a SOAP fault that can be passed to <see cref="Overload:System.ServiceModel.Channels.Message.CreateMessage" /> to create a message that contains a fault. For <see cref="T:System.ServiceModel.FaultException" /> objects that result from fault messages, this <see cref="T:System.ServiceModel.Channels.MessageFault" /> object is the fault that arrives.</para></returns></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="Message"><MemberSignature Language="C#" Value="public override string Message { get; }" /><MemberSignature Language="ILAsm" Value=".property instance string Message" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the message for the exception.</para></summary></Docs></Member><Member MemberName="Reason"><MemberSignature Language="C#" Value="public System.ServiceModel.FaultReason Reason { get; }" /><MemberSignature Language="ILAsm" Value=".property instance class System.ServiceModel.FaultReason Reason" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.ServiceModel.FaultReason</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.ServiceModel.FaultReason" /> for the SOAP fault.</para></summary></Docs></Member></Members></Type>