Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MessageHeaderException.cs / 1 / MessageHeaderException.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel { using System; using System.ServiceModel.Channels; using System.Runtime.Serialization; [Serializable] public class MessageHeaderException : ProtocolException { [NonSerialized] string headerName; [NonSerialized] string headerNamespace; [NonSerialized] bool isDuplicate; public MessageHeaderException(string message) : this(message, null, null) { } public MessageHeaderException(string message, bool isDuplicate) : this(message, null, null) { } public MessageHeaderException(string message, Exception innerException) : this(message, null, null, innerException) { } public MessageHeaderException(string message, string headerName, string ns) : this(message, headerName, ns, null) { } public MessageHeaderException(string message, string headerName, string ns, bool isDuplicate) : this(message, headerName, ns, isDuplicate, null) { } public MessageHeaderException(string message, string headerName, string ns, Exception innerException) : this(message, headerName, ns, false, innerException) { } public MessageHeaderException(string message, string headerName, string ns, bool isDuplicate, Exception innerException) : base(message, innerException) { this.headerName = headerName; this.headerNamespace = ns; this.isDuplicate = isDuplicate; } public string HeaderName { get { return this.headerName; } } public string HeaderNamespace { get { return this.headerNamespace; } } // IsDuplicate==true means there was more than one; IsDuplicate==false means there were zero public bool IsDuplicate { get { return this.isDuplicate; } } internal Message ProvideFault(MessageVersion messageVersion) { DiagnosticUtility.DebugAssert(messageVersion.Addressing == AddressingVersion.WSAddressing10, ""); WSAddressing10ProblemHeaderQNameFault phf = new WSAddressing10ProblemHeaderQNameFault(this); Message message = System.ServiceModel.Channels.Message.CreateMessage(messageVersion, phf, AddressingVersion.WSAddressing10.FaultAction); phf.AddHeaders(message.Headers); return message; } // for serialization public MessageHeaderException() { } protected MessageHeaderException(SerializationInfo info, StreamingContext context) : base(info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SettingsPropertyIsReadOnlyException.cs
- Properties.cs
- Qualifier.cs
- Opcode.cs
- DefinitionBase.cs
- UnauthorizedAccessException.cs
- WSIdentityFaultException.cs
- EndpointIdentityConverter.cs
- StyleSheet.cs
- SqlConnectionPoolGroupProviderInfo.cs
- XslVisitor.cs
- RelationshipEndCollection.cs
- _IPv6Address.cs
- ClientSettingsSection.cs
- Point.cs
- NamespaceEmitter.cs
- PassportAuthentication.cs
- ExternalFile.cs
- SoapFault.cs
- HttpHeaderCollection.cs
- DBNull.cs
- WebPartDesigner.cs
- TableItemPattern.cs
- TextPenaltyModule.cs
- CodeThrowExceptionStatement.cs
- BaseTreeIterator.cs
- M3DUtil.cs
- ScriptHandlerFactory.cs
- basenumberconverter.cs
- XsdDataContractExporter.cs
- ResourcePart.cs
- VirtualizedCellInfoCollection.cs
- ProtocolsConfigurationEntry.cs
- PerformanceCounterPermission.cs
- AnonymousIdentificationSection.cs
- SizeChangedEventArgs.cs
- AsymmetricKeyExchangeFormatter.cs
- SystemIPv6InterfaceProperties.cs
- wgx_render.cs
- TypeUtil.cs
- WrapPanel.cs
- BulletedList.cs
- WsdlServiceChannelBuilder.cs
- ToolStripItemClickedEventArgs.cs
- SafeRsaProviderHandle.cs
- ProtectedConfigurationProviderCollection.cs
- ToolTipService.cs
- StandardMenuStripVerb.cs
- QilReplaceVisitor.cs
- AccessibleObject.cs
- SupportingTokenChannel.cs
- BasicHttpBinding.cs
- SignedXml.cs
- PluralizationServiceUtil.cs
- TypeSystemHelpers.cs
- SqlWriter.cs
- DelegateHelpers.cs
- AppSettingsExpressionEditor.cs
- FrameworkObject.cs
- XmlDataImplementation.cs
- ServiceMemoryGates.cs
- DiscoveryExceptionDictionary.cs
- XPathMultyIterator.cs
- Variant.cs
- BitmapEffectInput.cs
- ContentTextAutomationPeer.cs
- EventProxy.cs
- ToolStripButton.cs
- Mapping.cs
- Triplet.cs
- SmtpLoginAuthenticationModule.cs
- CodeTypeMemberCollection.cs
- XPathPatternParser.cs
- HttpRuntimeSection.cs
- ListBoxItem.cs
- RIPEMD160Managed.cs
- CodeNamespaceImportCollection.cs
- CachingParameterInspector.cs
- ObjectSet.cs
- XpsDocumentEvent.cs
- Win32MouseDevice.cs
- AppDomainProtocolHandler.cs
- Choices.cs
- SoapElementAttribute.cs
- ConfigurationStrings.cs
- D3DImage.cs
- DataGridViewControlCollection.cs
- WindowClosedEventArgs.cs
- ApplicationServicesHostFactory.cs
- AuthorizationRule.cs
- ConfigurationManagerInternalFactory.cs
- MaterialCollection.cs
- columnmapkeybuilder.cs
- BindingValueChangedEventArgs.cs
- UnknownBitmapDecoder.cs
- unsafenativemethodsother.cs
- DocumentViewerHelper.cs
- SourceSwitch.cs
- login.cs
- DependencyPropertyDescriptor.cs