Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / MsmqPoisonMessageException.cs / 1 / MsmqPoisonMessageException.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel { using System.Runtime.Serialization; using System.Security.Permissions; using System.Security; [Serializable] public class MsmqPoisonMessageException : PoisonMessageException { long messageLookupId = 0; public MsmqPoisonMessageException() { } public MsmqPoisonMessageException(string message) : base(message) { } public MsmqPoisonMessageException(string message, Exception innerException) : base(message, innerException) { } public MsmqPoisonMessageException(long messageLookupId) : this(messageLookupId, null) {} public MsmqPoisonMessageException(long messageLookupId, Exception innerException) : base(SR.GetString(SR.MsmqPoisonMessage), innerException) { this.messageLookupId = messageLookupId; } public long MessageLookupId { get { return this.messageLookupId; } } protected MsmqPoisonMessageException(SerializationInfo info, StreamingContext context) : base(info, context) { this.messageLookupId = (long)info.GetValue("messageLookupId", typeof(long)); } ////// Critical - calls base.GetObjectData which is protected by a LinkDemand /// Safe - replicates the LinkDemand /// [SecurityCritical] [SecurityPermissionAttribute(SecurityAction.LinkDemand, SerializationFormatter = true)] public override void GetObjectData(SerializationInfo info, StreamingContext context) { base.GetObjectData(info, context); info.AddValue("messageLookupId", this.messageLookupId); } } } // 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
- LogWriteRestartAreaState.cs
- SettingsSection.cs
- RoutingConfiguration.cs
- DefaultTraceListener.cs
- ThousandthOfEmRealDoubles.cs
- PermissionSetEnumerator.cs
- WsdlBuildProvider.cs
- StructuredType.cs
- DesignSurfaceServiceContainer.cs
- ExceptionHelpers.cs
- SortedSet.cs
- FixedSOMTable.cs
- DescriptionAttribute.cs
- TraceListeners.cs
- InfoCardAsymmetricCrypto.cs
- EntityDataSourceStatementEditorForm.cs
- SpotLight.cs
- SplineKeyFrames.cs
- IDataContractSurrogate.cs
- documentation.cs
- TrustExchangeException.cs
- DataException.cs
- DataGridViewComboBoxEditingControl.cs
- UnmanagedMemoryStream.cs
- BooleanAnimationUsingKeyFrames.cs
- ConfigurationConverterBase.cs
- compensatingcollection.cs
- ServerValidateEventArgs.cs
- BooleanStorage.cs
- PrinterSettings.cs
- GridItemPattern.cs
- IdentityVerifier.cs
- QilNode.cs
- Scene3D.cs
- WeakReference.cs
- IntSecurity.cs
- ExceptionUtil.cs
- Nullable.cs
- PerformanceCounterCategory.cs
- ItemsChangedEventArgs.cs
- ParameterElement.cs
- ChtmlCommandAdapter.cs
- DataGridViewCellStateChangedEventArgs.cs
- ManagementClass.cs
- AsymmetricKeyExchangeFormatter.cs
- ASCIIEncoding.cs
- XhtmlBasicCommandAdapter.cs
- ColumnMapVisitor.cs
- PerformanceCounterCategory.cs
- VerificationException.cs
- Privilege.cs
- CardSpaceSelector.cs
- ByteAnimationBase.cs
- safelink.cs
- Activator.cs
- OdbcPermission.cs
- HttpRuntimeSection.cs
- FontClient.cs
- CompositionAdorner.cs
- LocalizableAttribute.cs
- MessageQueuePermission.cs
- TripleDES.cs
- SpellCheck.cs
- OracleNumber.cs
- IgnoreFlushAndCloseStream.cs
- ServiceParser.cs
- TypeInfo.cs
- SmtpCommands.cs
- NameSpaceExtractor.cs
- PerformanceCounterLib.cs
- CommonRemoteMemoryBlock.cs
- DataGridViewCellFormattingEventArgs.cs
- InvalidPropValue.cs
- DataGridTablesFactory.cs
- ManualWorkflowSchedulerService.cs
- StylusCollection.cs
- RangeExpression.cs
- DrawingGroup.cs
- XmlnsDictionary.cs
- XmlBoundElement.cs
- ContainerControl.cs
- ObjectStateEntryDbDataRecord.cs
- RepeatBehaviorConverter.cs
- Stackframe.cs
- RijndaelManaged.cs
- ExceptionUtil.cs
- DrawingContext.cs
- FileAuthorizationModule.cs
- SchemaImporterExtensionElement.cs
- GetPageNumberCompletedEventArgs.cs
- _SslState.cs
- HttpPostLocalhostServerProtocol.cs
- EmptyStringExpandableObjectConverter.cs
- TracingConnection.cs
- WebColorConverter.cs
- EpmCustomContentSerializer.cs
- ValuePatternIdentifiers.cs
- SQLInt32.cs
- TimeSpanFormat.cs
- ImagingCache.cs