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
- Dump.cs
- TableItemPattern.cs
- ExpandSegment.cs
- CompositeFontParser.cs
- SecurityStandardsManager.cs
- ItemCollection.cs
- Trace.cs
- PackWebResponse.cs
- COM2Properties.cs
- validation.cs
- TreeBuilder.cs
- DataSourceCacheDurationConverter.cs
- HttpHandlersSection.cs
- TransformValueSerializer.cs
- XmlDownloadManager.cs
- ArraySegment.cs
- SafeFindHandle.cs
- WindowVisualStateTracker.cs
- DocumentViewerBaseAutomationPeer.cs
- ComponentChangedEvent.cs
- MachineKeyConverter.cs
- BitmapPalettes.cs
- XPathSingletonIterator.cs
- ObjectItemCollection.cs
- cookiecollection.cs
- SessionEndedEventArgs.cs
- NameObjectCollectionBase.cs
- CodeLinePragma.cs
- PenContexts.cs
- TdsValueSetter.cs
- XmlNodeChangedEventArgs.cs
- ApplicationFileCodeDomTreeGenerator.cs
- TableSectionStyle.cs
- HeaderedContentControl.cs
- EndpointDiscoveryMetadata11.cs
- DetailsViewDeleteEventArgs.cs
- SQLInt16Storage.cs
- x509store.cs
- HtmlUtf8RawTextWriter.cs
- DoubleUtil.cs
- ColorConvertedBitmap.cs
- DataGridViewCellCancelEventArgs.cs
- Exception.cs
- RangeContentEnumerator.cs
- IdentityHolder.cs
- CriticalHandle.cs
- ClockController.cs
- ZipIOModeEnforcingStream.cs
- Label.cs
- BaseTemplatedMobileComponentEditor.cs
- QilName.cs
- DESCryptoServiceProvider.cs
- ToggleButtonAutomationPeer.cs
- CultureMapper.cs
- RtfToXamlLexer.cs
- ImageMap.cs
- MonikerSyntaxException.cs
- Property.cs
- ImmutableObjectAttribute.cs
- RoleGroup.cs
- DataMemberFieldEditor.cs
- XmlSecureResolver.cs
- BinaryFormatterWriter.cs
- Convert.cs
- PhonemeConverter.cs
- MouseGestureConverter.cs
- PerformanceCounterLib.cs
- TheQuery.cs
- XPathConvert.cs
- DataGridViewCellPaintingEventArgs.cs
- SerTrace.cs
- SqlParameterizer.cs
- DurationConverter.cs
- HtmlLabelAdapter.cs
- _KerberosClient.cs
- TemplatePagerField.cs
- ToolBarButtonDesigner.cs
- MiniAssembly.cs
- DataSourceSelectArguments.cs
- HttpHandlersSection.cs
- JsonXmlDataContract.cs
- TileBrush.cs
- VisualStyleRenderer.cs
- UriScheme.cs
- ConfigViewGenerator.cs
- SqlDataSourceSelectingEventArgs.cs
- StringKeyFrameCollection.cs
- TripleDES.cs
- QueryResponse.cs
- EventLogPermissionEntry.cs
- ApplyTemplatesAction.cs
- SqlDataRecord.cs
- HtmlFormWrapper.cs
- LeafCellTreeNode.cs
- DataSourceDescriptorCollection.cs
- LinearKeyFrames.cs
- ServiceKnownTypeAttribute.cs
- HttpServerProtocol.cs
- XmlAttributeOverrides.cs
- OleDbPermission.cs