Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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) { } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LostFocusEventManager.cs
- ControlDesigner.cs
- DefaultMemberAttribute.cs
- Point4DValueSerializer.cs
- SchemaCollectionPreprocessor.cs
- WebRequestModulesSection.cs
- GridViewColumn.cs
- CryptoApi.cs
- COM2IPerPropertyBrowsingHandler.cs
- ColorDialog.cs
- DisplayInformation.cs
- BitmapEffectGroup.cs
- WinEventTracker.cs
- SelectedPathEditor.cs
- CollectionViewGroupInternal.cs
- CodeTypeDeclarationCollection.cs
- DocumentViewerHelper.cs
- DataViewSettingCollection.cs
- ClipboardProcessor.cs
- dtdvalidator.cs
- DesignerProperties.cs
- ToolStripRendererSwitcher.cs
- XmlMapping.cs
- FileNotFoundException.cs
- FloaterParaClient.cs
- EntityCommandCompilationException.cs
- TextContainerChangeEventArgs.cs
- DataBindEngine.cs
- WindowCollection.cs
- TogglePattern.cs
- BitmapEffectGroup.cs
- RootBuilder.cs
- TreeView.cs
- WhitespaceRuleReader.cs
- FormatterConverter.cs
- SerializationSectionGroup.cs
- BitmapEffectDrawingContent.cs
- LongPath.cs
- SafeHGlobalHandleCritical.cs
- ExitEventArgs.cs
- TemplateKey.cs
- RewritingProcessor.cs
- Speller.cs
- SingleSelectRootGridEntry.cs
- NullExtension.cs
- BrowserCapabilitiesCodeGenerator.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SecureStringHasher.cs
- LinqDataSourceValidationException.cs
- TabControl.cs
- CacheEntry.cs
- VectorCollectionValueSerializer.cs
- CodeArgumentReferenceExpression.cs
- CanonicalizationDriver.cs
- CodeIdentifiers.cs
- RuntimeArgumentHandle.cs
- ResourceManagerWrapper.cs
- DrawingContextWalker.cs
- Boolean.cs
- ResolvedKeyFrameEntry.cs
- RuleSetReference.cs
- AdornerDecorator.cs
- Rect3D.cs
- CreateUserWizardStep.cs
- DispatcherExceptionEventArgs.cs
- AnnotationAdorner.cs
- FirstMatchCodeGroup.cs
- EncoderFallback.cs
- DeploymentExceptionMapper.cs
- ModuleBuilder.cs
- Model3D.cs
- SimpleHandlerBuildProvider.cs
- LocalIdKeyIdentifierClause.cs
- WindowsListViewGroupHelper.cs
- GeometryGroup.cs
- DataSourceDescriptorCollection.cs
- SoapObjectWriter.cs
- DataGridColumnCollection.cs
- GridViewCancelEditEventArgs.cs
- ItemsPresenter.cs
- RadialGradientBrush.cs
- SiteIdentityPermission.cs
- SerialStream.cs
- Maps.cs
- ControlDesigner.cs
- CharacterHit.cs
- HostedBindingBehavior.cs
- SimpleWebHandlerParser.cs
- Wildcard.cs
- CryptographicAttribute.cs
- InputScopeManager.cs
- PixelFormatConverter.cs
- SecurityTokenSerializer.cs
- SemanticTag.cs
- FilteredSchemaElementLookUpTable.cs
- future.cs
- SafeFileMappingHandle.cs
- ViewStateException.cs
- MenuCommands.cs
- ScrollEventArgs.cs