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
- ColorBlend.cs
- CopyOnWriteList.cs
- DropTarget.cs
- ValueTypeFieldReference.cs
- ResourceManager.cs
- MeasurementDCInfo.cs
- ConstructorExpr.cs
- XmlDigitalSignatureProcessor.cs
- RangeValueProviderWrapper.cs
- ISCIIEncoding.cs
- xmlglyphRunInfo.cs
- XmlSchemaType.cs
- DataList.cs
- KeyValueConfigurationElement.cs
- Choices.cs
- UserPersonalizationStateInfo.cs
- BaseDataListComponentEditor.cs
- versioninfo.cs
- AdornerHitTestResult.cs
- PathSegmentCollection.cs
- RecipientIdentity.cs
- CommandID.cs
- CompositeKey.cs
- StoreItemCollection.Loader.cs
- ImageFormatConverter.cs
- DefaultExpression.cs
- XPathScanner.cs
- TCPListener.cs
- uribuilder.cs
- MaskedTextProvider.cs
- LastQueryOperator.cs
- SQLBytes.cs
- AmbiguousMatchException.cs
- XmlCompatibilityReader.cs
- AppDomainProtocolHandler.cs
- TypeListConverter.cs
- WorkflowLayouts.cs
- AssemblyName.cs
- TracePayload.cs
- RadialGradientBrush.cs
- CodeCommentStatementCollection.cs
- ConfigurationConverterBase.cs
- XmlSerializationReader.cs
- PropagatorResult.cs
- IndexedEnumerable.cs
- SubpageParaClient.cs
- DataKeyArray.cs
- WebEventCodes.cs
- TemplateXamlParser.cs
- InkPresenter.cs
- EnumConverter.cs
- TimeSpanSecondsConverter.cs
- EmptyEnumerator.cs
- MappingItemCollection.cs
- JsonGlobals.cs
- JournalEntryListConverter.cs
- SchemaExporter.cs
- FixedDocument.cs
- XmlRootAttribute.cs
- DataGridViewLinkColumn.cs
- XmlWriter.cs
- DataList.cs
- ZoneLinkButton.cs
- PasswordDeriveBytes.cs
- LayoutSettings.cs
- SQLDateTimeStorage.cs
- GenericTextProperties.cs
- XmlComment.cs
- BooleanFacetDescriptionElement.cs
- PanningMessageFilter.cs
- SortableBindingList.cs
- MessageSecurityVersion.cs
- cryptoapiTransform.cs
- HttpCachePolicyWrapper.cs
- InputBinding.cs
- SafeCoTaskMem.cs
- CredentialCache.cs
- Zone.cs
- SystemSounds.cs
- QueryOutputWriter.cs
- SqlOuterApplyReducer.cs
- SecureConversationServiceCredential.cs
- ConditionalWeakTable.cs
- Options.cs
- HttpStreamXmlDictionaryReader.cs
- TabControlEvent.cs
- SqlBooleanizer.cs
- ReversePositionQuery.cs
- MarkupExtensionReturnTypeAttribute.cs
- ListViewContainer.cs
- GeneralTransform3D.cs
- webeventbuffer.cs
- DbDataReader.cs
- ToolStripCustomTypeDescriptor.cs
- XmlSchemaSimpleContent.cs
- IntranetCredentialPolicy.cs
- SqlDataSourceCache.cs
- MessageQueueCriteria.cs
- Type.cs
- EventMetadata.cs