Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Runtime / Serialization / SerializationException.cs / 1305376 / SerializationException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: SerializationException ** ** ** Purpose: Thrown when something goes wrong during serialization or ** deserialization. ** ** =============================================================================*/ namespace System.Runtime.Serialization { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class SerializationException : SystemException { private static String _nullMessage = Environment.GetResourceString("Arg_SerializationException"); // Creates a new SerializationException with its message // string set to a default message. public SerializationException() : base(_nullMessage) { SetErrorCode(__HResults.COR_E_SERIALIZATION); } public SerializationException(String message) : base(message) { SetErrorCode(__HResults.COR_E_SERIALIZATION); } public SerializationException(String message, Exception innerException) : base (message, innerException) { SetErrorCode(__HResults.COR_E_SERIALIZATION); } [System.Security.SecuritySafeCritical] // auto-generated protected SerializationException(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. // // ==--== /*============================================================================== ** ** Class: SerializationException ** ** ** Purpose: Thrown when something goes wrong during serialization or ** deserialization. ** ** =============================================================================*/ namespace System.Runtime.Serialization { using System; using System.Runtime.Serialization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class SerializationException : SystemException { private static String _nullMessage = Environment.GetResourceString("Arg_SerializationException"); // Creates a new SerializationException with its message // string set to a default message. public SerializationException() : base(_nullMessage) { SetErrorCode(__HResults.COR_E_SERIALIZATION); } public SerializationException(String message) : base(message) { SetErrorCode(__HResults.COR_E_SERIALIZATION); } public SerializationException(String message, Exception innerException) : base (message, innerException) { SetErrorCode(__HResults.COR_E_SERIALIZATION); } [System.Security.SecuritySafeCritical] // auto-generated protected SerializationException(SerializationInfo info, StreamingContext context) : base (info, context) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FloaterParaClient.cs
- XamlPoint3DCollectionSerializer.cs
- MILUtilities.cs
- GridToolTip.cs
- ModelItemKeyValuePair.cs
- PolicyManager.cs
- ListViewGroupConverter.cs
- AsyncCompletedEventArgs.cs
- Track.cs
- RectKeyFrameCollection.cs
- XmlSchema.cs
- HttpChannelHelper.cs
- DataGridItemCollection.cs
- XmlSiteMapProvider.cs
- TextEndOfParagraph.cs
- BooleanFunctions.cs
- InvalidContentTypeException.cs
- SqlLiftIndependentRowExpressions.cs
- TextModifier.cs
- MimeTypeMapper.cs
- XmlSchemas.cs
- FileDetails.cs
- TraceProvider.cs
- RegexTree.cs
- ResourcePool.cs
- JpegBitmapDecoder.cs
- DataBinding.cs
- ParameterReplacerVisitor.cs
- StreamSecurityUpgradeInitiator.cs
- Group.cs
- DynamicControlParameter.cs
- RequestCachePolicyConverter.cs
- Thickness.cs
- BindingsCollection.cs
- CheckBox.cs
- EventManager.cs
- RuntimeEnvironment.cs
- SHA512Managed.cs
- UIAgentMonitor.cs
- TypedTableHandler.cs
- IndexerNameAttribute.cs
- TextDpi.cs
- StringUtil.cs
- SchemaComplexType.cs
- GenericTypeParameterBuilder.cs
- SpeechRecognitionEngine.cs
- HttpWriter.cs
- NumericUpDownAcceleration.cs
- XmlSchemaSimpleTypeUnion.cs
- OneOfConst.cs
- GridLengthConverter.cs
- Decoder.cs
- DataGridSortCommandEventArgs.cs
- Operators.cs
- AutomationFocusChangedEventArgs.cs
- XmlAttributeProperties.cs
- SizeKeyFrameCollection.cs
- ViewBase.cs
- ProcessHostServerConfig.cs
- AssemblyBuilder.cs
- ConfigurationSection.cs
- AnnotationHelper.cs
- ArrayList.cs
- TemplateApplicationHelper.cs
- Security.cs
- PointConverter.cs
- SortAction.cs
- EventProviderWriter.cs
- WebHttpBindingCollectionElement.cs
- SafeEventLogWriteHandle.cs
- AccessDataSourceDesigner.cs
- SystemIPInterfaceProperties.cs
- ObjectStateEntry.cs
- GPRECT.cs
- updateconfighost.cs
- HMAC.cs
- InvokeGenerator.cs
- ParserOptions.cs
- EmptyStringExpandableObjectConverter.cs
- BitmapEffectGroup.cs
- Int64.cs
- HTTPNotFoundHandler.cs
- KeyValueConfigurationCollection.cs
- RelationshipSet.cs
- StringUtil.cs
- MobileCapabilities.cs
- ContainerActivationHelper.cs
- HTMLTextWriter.cs
- AdornerDecorator.cs
- HostProtectionPermission.cs
- TableDetailsRow.cs
- Run.cs
- EdmItemCollection.cs
- HTTPNotFoundHandler.cs
- XmlSignatureProperties.cs
- ExtenderControl.cs
- PathSegmentCollection.cs
- ImageCodecInfoPrivate.cs
- Exception.cs
- HtmlTitle.cs