Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / Runtime / Serialization / SerializationException.cs / 1 / 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); } 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); } 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
- MultiDataTrigger.cs
- ServicesUtilities.cs
- LiteralControl.cs
- WinEventWrap.cs
- PowerModeChangedEventArgs.cs
- SubMenuStyle.cs
- ChangeTracker.cs
- ColumnMap.cs
- RuntimeConfig.cs
- Literal.cs
- Vector.cs
- ConnectionsZone.cs
- MD5Cng.cs
- DesigntimeLicenseContextSerializer.cs
- EventRouteFactory.cs
- TypeUtils.cs
- SizeF.cs
- Rotation3DAnimationBase.cs
- IPPacketInformation.cs
- DiagnosticsConfigurationHandler.cs
- ClientScriptManagerWrapper.cs
- UnitySerializationHolder.cs
- UserMapPath.cs
- ConfigurationLocationCollection.cs
- CompModSwitches.cs
- PreDigestedSignedInfo.cs
- DataGridCellAutomationPeer.cs
- PtsContext.cs
- StrokeSerializer.cs
- SmiGettersStream.cs
- WebPartConnectVerb.cs
- Span.cs
- TableItemPatternIdentifiers.cs
- LabelLiteral.cs
- JavaScriptString.cs
- SpellCheck.cs
- MdiWindowListStrip.cs
- MappedMetaModel.cs
- FunctionImportMapping.cs
- RegexGroupCollection.cs
- SafeRightsManagementQueryHandle.cs
- CFStream.cs
- LoopExpression.cs
- ServiceOperationParameter.cs
- TableParaClient.cs
- HtmlTernaryTree.cs
- ReadOnlyTernaryTree.cs
- DataTableReader.cs
- LinearKeyFrames.cs
- BooleanExpr.cs
- XmlSerializer.cs
- TaskFormBase.cs
- XPathNodeList.cs
- TextSchema.cs
- ISAPIApplicationHost.cs
- CodeDomConfigurationHandler.cs
- Duration.cs
- HtmlTitle.cs
- EdmSchemaError.cs
- Version.cs
- SqlGenerator.cs
- ADMembershipUser.cs
- BuildResult.cs
- XmlNamespaceDeclarationsAttribute.cs
- HwndSourceParameters.cs
- DocumentPageView.cs
- SurrogateSelector.cs
- CalendarDay.cs
- QilXmlReader.cs
- XmlNamespaceDeclarationsAttribute.cs
- HopperCache.cs
- AvtEvent.cs
- DbXmlEnabledProviderManifest.cs
- MobileCategoryAttribute.cs
- ToolStripDropDownItem.cs
- SystemResourceHost.cs
- ConstraintEnumerator.cs
- TableLayoutStyle.cs
- OleDbCommandBuilder.cs
- WindowsAltTab.cs
- EditorPartCollection.cs
- DataSourceGroupCollection.cs
- AlphabeticalEnumConverter.cs
- HyperlinkAutomationPeer.cs
- PropertyValueUIItem.cs
- SafeTokenHandle.cs
- CalendarItem.cs
- DefaultEventAttribute.cs
- CustomErrorsSectionWrapper.cs
- AutomationEvent.cs
- _Rfc2616CacheValidators.cs
- XmlNullResolver.cs
- SeparatorAutomationPeer.cs
- TypedElement.cs
- ToolStripMenuItemCodeDomSerializer.cs
- HeaderedContentControl.cs
- BitmapMetadataEnumerator.cs
- DataServiceQueryProvider.cs
- StrokeCollection2.cs
- TreeNodeCollection.cs