Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- ApplicationDirectory.cs
- QueryOutputWriter.cs
- XmlMemberMapping.cs
- HtmlTitle.cs
- Quaternion.cs
- GeneralTransform3DGroup.cs
- Zone.cs
- XmlTextAttribute.cs
- ByteBufferPool.cs
- LostFocusEventManager.cs
- StringReader.cs
- DataGridViewColumnConverter.cs
- WorkflowApplicationTerminatedException.cs
- EnvelopedPkcs7.cs
- MarshalByRefObject.cs
- FloaterBaseParaClient.cs
- InArgumentConverter.cs
- DecoderFallback.cs
- CommandHelper.cs
- MsmqEncryptionAlgorithm.cs
- TraceHandler.cs
- DataServiceRequest.cs
- FormsIdentity.cs
- CaretElement.cs
- ConsoleTraceListener.cs
- UIPermission.cs
- ScaleTransform.cs
- Serializer.cs
- DoubleStorage.cs
- CounterCreationData.cs
- EntityDataSourceContextCreatedEventArgs.cs
- WebUtil.cs
- OrderByLifter.cs
- BufferedGraphicsManager.cs
- HistoryEventArgs.cs
- ZipIOExtraFieldPaddingElement.cs
- mda.cs
- DataGridColumnsPage.cs
- PeerApplication.cs
- TextTreeNode.cs
- BindingCollection.cs
- UMPAttributes.cs
- TableLayoutCellPaintEventArgs.cs
- FormViewPageEventArgs.cs
- PeerDuplexChannel.cs
- OracleTimeSpan.cs
- WorkflowViewStateService.cs
- PathSegment.cs
- MessageQueueInstaller.cs
- ApplicationFileParser.cs
- ModelFunctionTypeElement.cs
- Int32CollectionConverter.cs
- InternalConfigHost.cs
- DataStorage.cs
- TemplatingOptionsDialog.cs
- AnnouncementService.cs
- ImageBrush.cs
- XmlAttributeAttribute.cs
- SignatureToken.cs
- Int32.cs
- StructuredTypeInfo.cs
- Converter.cs
- OptimizedTemplateContentHelper.cs
- DetailsViewUpdateEventArgs.cs
- MimeMultiPart.cs
- MulticastDelegate.cs
- XmlSortKey.cs
- DataRowExtensions.cs
- ArrayExtension.cs
- BitmapEffectRenderDataResource.cs
- ListCollectionView.cs
- _StreamFramer.cs
- RijndaelManagedTransform.cs
- SerializationStore.cs
- xmlglyphRunInfo.cs
- PrintPreviewDialog.cs
- HitTestParameters3D.cs
- MailAddressParser.cs
- GeometryHitTestParameters.cs
- _WinHttpWebProxyDataBuilder.cs
- GeometryHitTestResult.cs
- ZoneIdentityPermission.cs
- SpellerHighlightLayer.cs
- Compiler.cs
- CreateUserErrorEventArgs.cs
- XamlSerializerUtil.cs
- TraceHandlerErrorFormatter.cs
- PropertyGridEditorPart.cs
- DataServiceException.cs
- HwndSubclass.cs
- MetaModel.cs
- NumericUpDown.cs
- Rotation3DAnimationBase.cs
- counter.cs
- FontSizeConverter.cs
- As.cs
- invalidudtexception.cs
- OuterGlowBitmapEffect.cs
- securitymgrsite.cs
- CheckBoxField.cs