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
- HttpBufferlessInputStream.cs
- ColorAnimationUsingKeyFrames.cs
- SystemWebSectionGroup.cs
- TrustSection.cs
- MD5CryptoServiceProvider.cs
- EventListenerClientSide.cs
- HttpCookiesSection.cs
- HostSecurityManager.cs
- LambdaCompiler.Logical.cs
- MediaScriptCommandRoutedEventArgs.cs
- CoreSwitches.cs
- TextAutomationPeer.cs
- Attribute.cs
- XmlDataDocument.cs
- DnsEndPoint.cs
- SecurityHeaderElementInferenceEngine.cs
- CanExecuteRoutedEventArgs.cs
- mactripleDES.cs
- CheckBoxAutomationPeer.cs
- Inline.cs
- TextRangeEditLists.cs
- GeometryGroup.cs
- ScriptingProfileServiceSection.cs
- SingleTagSectionHandler.cs
- ResXFileRef.cs
- OutputCacheSettingsSection.cs
- RtfFormatStack.cs
- PartManifestEntry.cs
- SchemaTableColumn.cs
- SelectionBorderGlyph.cs
- RuntimeResourceSet.cs
- ScrollChrome.cs
- SqlConnectionString.cs
- SingleAnimationUsingKeyFrames.cs
- AssemblyAssociatedContentFileAttribute.cs
- SHA512.cs
- SafeEventLogReadHandle.cs
- Point3DAnimationUsingKeyFrames.cs
- SByte.cs
- WebAdminConfigurationHelper.cs
- WebPartCancelEventArgs.cs
- WaitHandle.cs
- DataGridHelper.cs
- Attributes.cs
- SqlStatistics.cs
- WindowsPrincipal.cs
- StrokeCollection2.cs
- ObjectStateEntryDbDataRecord.cs
- SqlUDTStorage.cs
- CompileXomlTask.cs
- DictionaryEntry.cs
- odbcmetadatafactory.cs
- Geometry.cs
- CommandCollectionEditor.cs
- UpdatePanelTrigger.cs
- MdiWindowListStrip.cs
- IgnoreDeviceFilterElement.cs
- PenContext.cs
- ListViewTableRow.cs
- SocketElement.cs
- MetadataArtifactLoaderResource.cs
- MasterPageBuildProvider.cs
- HealthMonitoringSectionHelper.cs
- PolyLineSegment.cs
- DataProtection.cs
- PhysicalAddress.cs
- CommandBinding.cs
- ChangeInterceptorAttribute.cs
- JsonEncodingStreamWrapper.cs
- PingOptions.cs
- OleDbConnectionInternal.cs
- TreeNodeStyleCollection.cs
- RepeatButtonAutomationPeer.cs
- LostFocusEventManager.cs
- DataControlFieldCell.cs
- FileSystemWatcher.cs
- UrlMappingsSection.cs
- GlyphsSerializer.cs
- MenuItemCollection.cs
- XPathScanner.cs
- PersistenceProviderDirectory.cs
- ConfigXmlElement.cs
- SafeViewOfFileHandle.cs
- GeneralTransform.cs
- ParagraphResult.cs
- AnimationClock.cs
- Quaternion.cs
- SubpageParaClient.cs
- GestureRecognitionResult.cs
- UnmanagedMemoryStream.cs
- KeyInfo.cs
- UIElement.cs
- Token.cs
- EventMappingSettingsCollection.cs
- DateTimeFormatInfo.cs
- SchemaEntity.cs
- BuildProviderCollection.cs
- StrokeCollection2.cs
- ToolStripTextBox.cs
- CheckBox.cs