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
- DetailsViewUpdateEventArgs.cs
- X509ChainPolicy.cs
- MatrixIndependentAnimationStorage.cs
- AQNBuilder.cs
- _ListenerAsyncResult.cs
- SoapExtensionTypeElement.cs
- UrlPropertyAttribute.cs
- XmlTextEncoder.cs
- DocumentGrid.cs
- PlacementWorkspace.cs
- SqlDuplicator.cs
- COM2Enum.cs
- SystemMulticastIPAddressInformation.cs
- TemplateBindingExtensionConverter.cs
- SrgsSemanticInterpretationTag.cs
- ScrollBar.cs
- ElementNotEnabledException.cs
- TranslateTransform3D.cs
- SparseMemoryStream.cs
- MachineKeyConverter.cs
- FontDifferentiator.cs
- BindingCollectionElement.cs
- EdmProperty.cs
- TableRow.cs
- MessageDecoder.cs
- XamlRtfConverter.cs
- OutputScopeManager.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- FindResponse.cs
- ScrollItemPattern.cs
- MessageSecurityOverHttp.cs
- WindowsNonControl.cs
- ping.cs
- BitmapDecoder.cs
- SmiEventStream.cs
- AssociationType.cs
- SmtpNegotiateAuthenticationModule.cs
- _SslStream.cs
- ToolStripContentPanelRenderEventArgs.cs
- DbParameterCollection.cs
- Validator.cs
- TranslateTransform3D.cs
- BaseValidatorDesigner.cs
- WebPartConnectionsConfigureVerb.cs
- ProxyHwnd.cs
- RSACryptoServiceProvider.cs
- DocumentApplication.cs
- DrawingAttributesDefaultValueFactory.cs
- UserControlCodeDomTreeGenerator.cs
- MessageBuilder.cs
- StyleHelper.cs
- ErrorWrapper.cs
- XmlDataSourceDesigner.cs
- HighlightVisual.cs
- SchemaMapping.cs
- TabControlCancelEvent.cs
- sqlstateclientmanager.cs
- HtmlForm.cs
- ExpressionLink.cs
- Debug.cs
- XmlSchemaIdentityConstraint.cs
- FileStream.cs
- TripleDESCryptoServiceProvider.cs
- ProxyWebPartManager.cs
- DoubleLink.cs
- HijriCalendar.cs
- FailedToStartupUIException.cs
- OperationCanceledException.cs
- DataGridViewColumnConverter.cs
- GeometryGroup.cs
- Expression.cs
- HTMLTextWriter.cs
- RTTrackingProfile.cs
- CancellationToken.cs
- BitmapImage.cs
- XmlSchemaComplexType.cs
- XPathNodeHelper.cs
- ToolStripItemEventArgs.cs
- ScalarConstant.cs
- StoreAnnotationsMap.cs
- NavigationPropertySingletonExpression.cs
- StylusButton.cs
- CodeAccessSecurityEngine.cs
- UriTemplateLiteralPathSegment.cs
- EventRecord.cs
- StorageComplexPropertyMapping.cs
- DataContractAttribute.cs
- CryptoKeySecurity.cs
- CompiledRegexRunnerFactory.cs
- TargetConverter.cs
- _LocalDataStore.cs
- ObjectQuery.cs
- ErrorHandler.cs
- DoWorkEventArgs.cs
- XmlProcessingInstruction.cs
- Rijndael.cs
- OleDbError.cs
- StateChangeEvent.cs
- ConfigXmlCDataSection.cs
- SByteConverter.cs