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
- Converter.cs
- JobStaple.cs
- ModelPerspective.cs
- webclient.cs
- WebPartConnectionsCloseVerb.cs
- CodeTypeReferenceCollection.cs
- ACL.cs
- Context.cs
- BuildProviderAppliesToAttribute.cs
- AsyncDataRequest.cs
- CheckBox.cs
- BaseValidator.cs
- TextOnlyOutput.cs
- PeerToPeerException.cs
- CertificateManager.cs
- MenuBindingsEditorForm.cs
- GrabHandleGlyph.cs
- BulletedListEventArgs.cs
- URLAttribute.cs
- TextHidden.cs
- CodeSnippetCompileUnit.cs
- OuterGlowBitmapEffect.cs
- ContextMenuService.cs
- DataGridItemEventArgs.cs
- TokenBasedSetEnumerator.cs
- GatewayDefinition.cs
- FullTextState.cs
- UpdateCompiler.cs
- HttpCapabilitiesSectionHandler.cs
- WindowsFormsEditorServiceHelper.cs
- ListViewGroup.cs
- ReadOnlyHierarchicalDataSource.cs
- CharKeyFrameCollection.cs
- LocalIdCollection.cs
- Base64Encoder.cs
- InternalConfigEventArgs.cs
- RouteItem.cs
- SiteIdentityPermission.cs
- PageThemeCodeDomTreeGenerator.cs
- CategoryNameCollection.cs
- RegularExpressionValidator.cs
- BodyGlyph.cs
- XPathDocumentIterator.cs
- XPathBinder.cs
- SetterBase.cs
- SpotLight.cs
- SeekStoryboard.cs
- OperatingSystem.cs
- Point.cs
- PriorityBindingExpression.cs
- InputLanguageManager.cs
- WinInetCache.cs
- RadioButtonRenderer.cs
- Screen.cs
- ServiceModelActivity.cs
- WebBrowserSiteBase.cs
- UInt32Converter.cs
- MD5.cs
- ISO2022Encoding.cs
- SafeSecurityHelper.cs
- XmlTextWriter.cs
- OperationCanceledException.cs
- XmlElementList.cs
- ValueQuery.cs
- Zone.cs
- EasingFunctionBase.cs
- Size3DValueSerializer.cs
- SchemaElementDecl.cs
- AccessorTable.cs
- CqlIdentifiers.cs
- recordstate.cs
- Parsers.cs
- FileReservationCollection.cs
- CommandConverter.cs
- WebBrowserEvent.cs
- RawAppCommandInputReport.cs
- WinEventWrap.cs
- MissingManifestResourceException.cs
- ToolboxBitmapAttribute.cs
- ActivityXRefPropertyEditor.cs
- IHttpResponseInternal.cs
- Invariant.cs
- DirectoryGroupQuery.cs
- ToolStripItemBehavior.cs
- CodeDOMProvider.cs
- EndpointInstanceProvider.cs
- ObjectManager.cs
- AppDomainProtocolHandler.cs
- TemplateAction.cs
- NoneExcludedImageIndexConverter.cs
- TextElementCollection.cs
- VirtualPathData.cs
- MonitorWrapper.cs
- SchemaImporterExtension.cs
- UidManager.cs
- LinkLabel.cs
- InvalidFilterCriteriaException.cs
- PathGeometry.cs
- CompilerLocalReference.cs
- LinqDataSourceUpdateEventArgs.cs