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
- LayoutTable.cs
- Vector3DConverter.cs
- ArcSegment.cs
- TrackingProfileSerializer.cs
- ApplicationTrust.cs
- PocoEntityKeyStrategy.cs
- InheritanceAttribute.cs
- CompilationSection.cs
- FacetValues.cs
- ProcessActivityTreeOptions.cs
- FileClassifier.cs
- ConfigsHelper.cs
- KnownColorTable.cs
- XamlInterfaces.cs
- MediaScriptCommandRoutedEventArgs.cs
- FtpRequestCacheValidator.cs
- IApplicationTrustManager.cs
- StateMachine.cs
- XamlTypeMapper.cs
- TextEffect.cs
- MemoryResponseElement.cs
- HttpCacheVaryByContentEncodings.cs
- HtmlInputText.cs
- RowUpdatingEventArgs.cs
- FaultFormatter.cs
- DataGridViewRowCancelEventArgs.cs
- Storyboard.cs
- DeviceSpecificChoice.cs
- Configuration.cs
- TokenizerHelper.cs
- RequestQueue.cs
- Base64Stream.cs
- MetadataExporter.cs
- DecimalFormatter.cs
- OverflowException.cs
- DataTableReaderListener.cs
- ConfigXmlWhitespace.cs
- SimpleType.cs
- BoundField.cs
- TextEditorContextMenu.cs
- EntityPropertyMappingAttribute.cs
- DynamicResourceExtension.cs
- ExceptionValidationRule.cs
- Directory.cs
- WorkflowInstance.cs
- TypeContext.cs
- WindowsListViewScroll.cs
- ScrollPatternIdentifiers.cs
- OdbcException.cs
- ThicknessKeyFrameCollection.cs
- ExpressionNormalizer.cs
- FormClosedEvent.cs
- HttpCookie.cs
- StylusButtonCollection.cs
- JsonServiceDocumentSerializer.cs
- DataTrigger.cs
- Mapping.cs
- XNodeNavigator.cs
- ServiceModelStringsVersion1.cs
- UseLicense.cs
- FontStyleConverter.cs
- SqlMethods.cs
- ChineseLunisolarCalendar.cs
- ProviderBase.cs
- RegexRunner.cs
- WinEventTracker.cs
- CatalogPartCollection.cs
- SqlDataSourceConfigureSelectPanel.cs
- DebugInfo.cs
- ArrayEditor.cs
- ImpersonateTokenRef.cs
- SortableBindingList.cs
- ToolStripDropDownItem.cs
- TypeUtil.cs
- MaskedTextProvider.cs
- CodeMemberEvent.cs
- GiveFeedbackEventArgs.cs
- PlanCompilerUtil.cs
- ControlEvent.cs
- RawAppCommandInputReport.cs
- QilSortKey.cs
- DataGridItemEventArgs.cs
- ValidatorUtils.cs
- PartitionResolver.cs
- PathBox.cs
- IisTraceWebEventProvider.cs
- PropertyEmitter.cs
- TextPointer.cs
- StorageEntityTypeMapping.cs
- TimeoutConverter.cs
- IdleTimeoutMonitor.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- AllMembershipCondition.cs
- SymDocumentType.cs
- GeneralTransformGroup.cs
- LoginName.cs
- Knowncolors.cs
- InputReportEventArgs.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- ParagraphVisual.cs