Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- IndexedString.cs
- FixedSOMPageElement.cs
- PointAnimationUsingKeyFrames.cs
- XmlKeywords.cs
- SessionPageStatePersister.cs
- WriteFileContext.cs
- CqlParser.cs
- CodeGenerator.cs
- AutomationIdentifierGuids.cs
- BuildProviderCollection.cs
- PolicyManager.cs
- SafeHandles.cs
- HtmlEmptyTagControlBuilder.cs
- PageVisual.cs
- BoundsDrawingContextWalker.cs
- HttpListenerException.cs
- Automation.cs
- ClientProxyGenerator.cs
- DescendantOverDescendantQuery.cs
- AttributedMetaModel.cs
- ForceCopyBuildProvider.cs
- CodeCastExpression.cs
- DataGridColumn.cs
- UnmanagedMemoryStreamWrapper.cs
- DrawingVisual.cs
- XslAst.cs
- WindowsImpersonationContext.cs
- SQLInt32Storage.cs
- PenContext.cs
- TitleStyle.cs
- DynamicDataResources.Designer.cs
- ColumnPropertiesGroup.cs
- XmlDocumentFieldSchema.cs
- RootBrowserWindowProxy.cs
- Table.cs
- Number.cs
- EmptyEnumerator.cs
- MailDefinition.cs
- InvokeProviderWrapper.cs
- GPPOINTF.cs
- StrokeCollection.cs
- HtmlElementEventArgs.cs
- PropertyEntry.cs
- IApplicationTrustManager.cs
- InfoCardCryptoHelper.cs
- OletxVolatileEnlistment.cs
- ContractInferenceHelper.cs
- EventsTab.cs
- _HeaderInfoTable.cs
- ChannelTokenTypeConverter.cs
- SqlTransaction.cs
- BamlLocalizableResourceKey.cs
- EntityTypeEmitter.cs
- DataSet.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- WpfPayload.cs
- sqlinternaltransaction.cs
- AudioBase.cs
- TargetPerspective.cs
- Version.cs
- DataServiceHost.cs
- MappingException.cs
- HGlobalSafeHandle.cs
- SafeWaitHandle.cs
- SqlDataSourceQuery.cs
- HierarchicalDataSourceControl.cs
- DbDataSourceEnumerator.cs
- TextDpi.cs
- HtmlLink.cs
- RelationshipFixer.cs
- securitycriticaldataformultiplegetandset.cs
- PagesSection.cs
- XmlTextAttribute.cs
- SqlExpressionNullability.cs
- TimerEventSubscriptionCollection.cs
- panel.cs
- GridViewItemAutomationPeer.cs
- KeyGestureConverter.cs
- RepeaterItemCollection.cs
- ConsumerConnectionPointCollection.cs
- JournalEntry.cs
- MetadataCache.cs
- UIElement.cs
- SoapCommonClasses.cs
- ClaimTypes.cs
- CodeChecksumPragma.cs
- SelectQueryOperator.cs
- ClientSession.cs
- SimpleTypesSurrogate.cs
- CodeTypeReferenceExpression.cs
- AddInController.cs
- TemplateAction.cs
- DbProviderFactory.cs
- CodeCastExpression.cs
- StylusPointCollection.cs
- FormsAuthenticationUser.cs
- PlanCompiler.cs
- KeyInterop.cs
- Classification.cs
- CodeCompiler.cs