8 overrides of Code
System.ServiceModel (4)
System\ServiceModel\Channels\MessageFault.cs (2)
430
public override FaultCode
Code
511
public override FaultCode
Code
System\ServiceModel\Channels\WsrmFault.cs (1)
49
public override FaultCode
Code
System\ServiceModel\WSAddressing10ProblemHeaderQNameFault.cs (1)
66
public override FaultCode
Code
System.ServiceModel.Activities (2)
System\ServiceModel\Activities\Dispatcher\DurableDispatcherAddressingFault.cs (1)
23
public override FaultCode
Code
System\ServiceModel\Activities\Dispatcher\OperationExecutionFault.cs (1)
34
public override FaultCode
Code
System.WorkflowServices (2)
System\ServiceModel\Dispatcher\DurableDispatcherAddressingFault.cs (1)
23
public override FaultCode
Code
System\ServiceModel\Dispatcher\WorkflowOperationFault.cs (1)
33
public override FaultCode
Code
43 references to Code
System.ServiceModel (43)
System\ServiceModel\Channels\FaultConverter.cs (6)
95
if (string.Compare(fault.
Code
.Namespace, version.Envelope.Namespace, StringComparison.Ordinal) == 0
96
&& string.Compare(fault.
Code
.Name, MessageStrings.MustUnderstandFault, StringComparison.Ordinal) == 0)
110
code = fault.
Code
;
114
checkSender = fault.
Code
.IsSenderFault;
115
checkReceiver = fault.
Code
.IsReceiverFault;
116
code = fault.
Code
.SubCode;
System\ServiceModel\Channels\MessageFault.cs (3)
138
FaultCode code = this.
Code
;
303
WriteFaultCode12Driver(writer,
Code
, version);
366
FaultCode faultCode =
Code
;
System\ServiceModel\Channels\ReliableMessagingHelpers.cs (3)
3215
FaultCode code = fault.
Code
;
3275
return new ProtocolException(SR.GetString(SR.UnrecognizedFaultReceivedOnOpen, fault.
Code
.Namespace, fault.
Code
.Name, FaultException.GetSafeReasonText(fault)));
System\ServiceModel\Channels\ServiceChannel.cs (5)
1093
code = fault.
Code
;
1097
checkSender = fault.
Code
.IsSenderFault;
1098
checkReceiver = fault.
Code
.IsReceiverFault;
1099
code = fault.
Code
.SubCode;
1150
throw DiagnosticUtility.ExceptionUtility.ThrowHelperWarning(new FaultException<ExceptionDetail>(detail, fault.Reason, fault.
Code
, action));
System\ServiceModel\Channels\WsrmFault.cs (9)
412
if (!fault.
Code
.IsSenderFault && !fault.
Code
.IsReceiverFault)
441
wsrmFault = CreateWsrmHeaderFault(reliableMessagingVersion, fault.
Code
, subcodeName, fault.Reason,
458
if (!fault.
Code
.IsSenderFault && !fault.
Code
.IsReceiverFault)
464
if ((fault.
Code
.SubCode == null)
465
|| (fault.
Code
.SubCode.Namespace != WsrmIndex.GetNamespaceString(reliableMessagingVersion)) || !fault.HasDetail)
471
string subcodeName = fault.
Code
.SubCode.Name;
473
wsrmFault = CreateWsrmHeaderFault(reliableMessagingVersion, fault.
Code
, subcodeName, fault.Reason,
System\ServiceModel\Channels\WsrmMessageInfo.cs (2)
598
messageInfo.faultException = new ProtocolException(SR.GetString(SR.UnrecognizedFaultReceived, messageInfo.faultInfo.
Code
.Namespace, messageInfo.faultInfo.
Code
.Name, System.ServiceModel.FaultException.GetSafeReasonText(messageInfo.faultInfo)));
System\ServiceModel\Dispatcher\ErrorBehavior.cs (4)
99
if (e != null && e.Fault != null && e.Fault.
Code
!= null && e.Fault.
Code
.SubCode != null &&
100
string.Compare(e.Fault.
Code
.SubCode.Namespace, FaultCodeConstants.Namespaces.NetDispatch, StringComparison.Ordinal) == 0 &&
101
string.Compare(e.Fault.
Code
.SubCode.Name, FaultCodeConstants.Codes.InternalServiceFault, StringComparison.Ordinal) == 0)
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
164
messageFault.
Code
,
System\ServiceModel\FaultException.cs (2)
103
this.code = FaultException.EnsureCode(fault.
Code
);
114
this.code = fault.
Code
;
System\ServiceModel\Security\SecuritySessionClientSettings.cs (2)
892
if (fault.
Code
.IsSenderFault)
894
FaultCode subCode = fault.
Code
.SubCode;
System\ServiceModel\Security\SecurityUtils.cs (6)
1260
if (fault.
Code
!= null && fault.
Code
.IsReceiverFault && fault.
Code
.SubCode != null)
1262
FaultCode subCode = fault.
Code
.SubCode;
1278
if (fault.
Code
.IsSenderFault)
1280
FaultCode subCode = fault.
Code
.SubCode;