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
- PreloadedPackages.cs
- GenerateScriptTypeAttribute.cs
- DocumentSequenceHighlightLayer.cs
- ClaimTypes.cs
- QueryCacheEntry.cs
- ToolBar.cs
- HtmlImageAdapter.cs
- FacetChecker.cs
- OracleMonthSpan.cs
- AttributeTable.cs
- StatusBar.cs
- RuntimeCompatibilityAttribute.cs
- FormViewUpdatedEventArgs.cs
- ErrorHandler.cs
- ApplicationDirectoryMembershipCondition.cs
- FindCompletedEventArgs.cs
- XmlSchemaComplexContentExtension.cs
- TraceHwndHost.cs
- CroppedBitmap.cs
- CurrentTimeZone.cs
- CompoundFileStorageReference.cs
- TextLineBreak.cs
- SEHException.cs
- EventLogException.cs
- ResourceExpressionBuilder.cs
- NumericUpDownAcceleration.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- XmlSecureResolver.cs
- BroadcastEventHelper.cs
- WebRequest.cs
- LocalizedNameDescriptionPair.cs
- TypographyProperties.cs
- BindingSourceDesigner.cs
- InfoCardRSACryptoProvider.cs
- SqlMethodAttribute.cs
- RemotingServices.cs
- ConnectivityStatus.cs
- LongValidator.cs
- RowToParametersTransformer.cs
- UniqueID.cs
- SqlFacetAttribute.cs
- NotImplementedException.cs
- TransportBindingElementImporter.cs
- DataFieldConverter.cs
- EndOfStreamException.cs
- ReadingWritingEntityEventArgs.cs
- TableNameAttribute.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- DurableInstanceContextProvider.cs
- ServiceAuthorizationBehavior.cs
- ConfigurationStrings.cs
- KeyboardDevice.cs
- ProjectionCamera.cs
- TypeConverterHelper.cs
- TreeNodeBindingCollection.cs
- XPathSelectionIterator.cs
- DispatcherHookEventArgs.cs
- WindowClosedEventArgs.cs
- CompiledAction.cs
- ReferencedCollectionType.cs
- LocalIdKeyIdentifierClause.cs
- SpeechEvent.cs
- FileDialog.cs
- _ScatterGatherBuffers.cs
- StrongNamePublicKeyBlob.cs
- QualificationDataAttribute.cs
- listitem.cs
- AttributeCollection.cs
- RecordConverter.cs
- PnrpPermission.cs
- DesignerAttribute.cs
- InvalidOperationException.cs
- DockPanel.cs
- NativeMethods.cs
- DrawingGroupDrawingContext.cs
- OleDbMetaDataFactory.cs
- TraceLevelStore.cs
- XsdDuration.cs
- NamedObjectList.cs
- NodeLabelEditEvent.cs
- GestureRecognizer.cs
- TargetConverter.cs
- CustomTypeDescriptor.cs
- EventPropertyMap.cs
- DocumentPropertiesDialog.cs
- UnsafeNativeMethods.cs
- BuildProviderCollection.cs
- LinqDataSourceContextEventArgs.cs
- ServiceBusyException.cs
- GZipStream.cs
- SmtpLoginAuthenticationModule.cs
- TimerTable.cs
- thaishape.cs
- Section.cs
- SecurityToken.cs
- OracleException.cs
- EntitySqlQueryCacheKey.cs
- SymmetricKey.cs
- RayHitTestParameters.cs
- IPipelineRuntime.cs