Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / clr / src / BCL / System / MissingFieldException.cs / 1 / MissingFieldException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MissingFieldException ** ** Purpose: The exception class for class loading failures. ** =============================================================================*/ namespace System { using System; using System.Runtime.Remoting; using System.Runtime.Serialization; using System.Runtime.CompilerServices; using System.Globalization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class MissingFieldException : MissingMemberException, ISerializable { public MissingFieldException() : base(Environment.GetResourceString("Arg_MissingFieldException")) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } public MissingFieldException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } public MissingFieldException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } protected MissingFieldException(SerializationInfo info, StreamingContext context) : base(info, context) { } public override String Message { get { if (ClassName == null) { return base.Message; } else { // do any desired fixups to classname here. return String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("MissingField_Name", (Signature != null ? FormatSignature(Signature) + " " : "") + ClassName + "." + MemberName)); } } } // Called from the EE private MissingFieldException(String className, String fieldName, byte[] signature) { ClassName = className; MemberName = fieldName; Signature = signature; } public MissingFieldException(String className, String fieldName) { ClassName = className; MemberName = fieldName; } // If ClassName != null, Message will construct on the fly using it // and the other variables. This allows customization of the // format depending on the language environment. } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MissingFieldException ** ** Purpose: The exception class for class loading failures. ** =============================================================================*/ namespace System { using System; using System.Runtime.Remoting; using System.Runtime.Serialization; using System.Runtime.CompilerServices; using System.Globalization; [System.Runtime.InteropServices.ComVisible(true)] [Serializable()] public class MissingFieldException : MissingMemberException, ISerializable { public MissingFieldException() : base(Environment.GetResourceString("Arg_MissingFieldException")) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } public MissingFieldException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } public MissingFieldException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MISSINGFIELD); } protected MissingFieldException(SerializationInfo info, StreamingContext context) : base(info, context) { } public override String Message { get { if (ClassName == null) { return base.Message; } else { // do any desired fixups to classname here. return String.Format(CultureInfo.CurrentCulture, Environment.GetResourceString("MissingField_Name", (Signature != null ? FormatSignature(Signature) + " " : "") + ClassName + "." + MemberName)); } } } // Called from the EE private MissingFieldException(String className, String fieldName, byte[] signature) { ClassName = className; MemberName = fieldName; Signature = signature; } public MissingFieldException(String className, String fieldName) { ClassName = className; MemberName = fieldName; } // If ClassName != null, Message will construct on the fly using it // and the other variables. This allows customization of the // format depending on the language environment. } } // 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
- TextServicesCompartmentContext.cs
- Label.cs
- DataErrorValidationRule.cs
- CapabilitiesSection.cs
- Misc.cs
- MexHttpBindingCollectionElement.cs
- ContextDataSourceContextData.cs
- CLRBindingWorker.cs
- WindowsEditBoxRange.cs
- StrokeSerializer.cs
- XamlContextStack.cs
- ObjectDataSourceFilteringEventArgs.cs
- ListViewInsertedEventArgs.cs
- WebControl.cs
- QueryStringParameter.cs
- TextCompositionEventArgs.cs
- NamespaceListProperty.cs
- AuthenticationModuleElement.cs
- ElementInit.cs
- TextBlock.cs
- ExtensionElement.cs
- Int64AnimationBase.cs
- MonitoringDescriptionAttribute.cs
- CultureData.cs
- MetaColumn.cs
- CodeDOMUtility.cs
- Vector3DCollection.cs
- WinEventQueueItem.cs
- RowToParametersTransformer.cs
- GenerateTemporaryTargetAssembly.cs
- BamlTreeMap.cs
- RegionIterator.cs
- WindowsFormsLinkLabel.cs
- SqlTypeSystemProvider.cs
- ConfigDefinitionUpdates.cs
- OptimizerPatterns.cs
- ColorConvertedBitmap.cs
- PropertyItemInternal.cs
- MenuEventArgs.cs
- AnnotationMap.cs
- Listbox.cs
- FormsAuthentication.cs
- ObjectConverter.cs
- TypeLoadException.cs
- SelectionGlyph.cs
- StringKeyFrameCollection.cs
- XmlSerializableReader.cs
- IdentityNotMappedException.cs
- ErrorStyle.cs
- ELinqQueryState.cs
- SQLByteStorage.cs
- UrlMappingsModule.cs
- PrintPageEvent.cs
- HuffModule.cs
- BaseUriWithWildcard.cs
- VirtualDirectoryMapping.cs
- DataPagerFieldCommandEventArgs.cs
- ToolBar.cs
- WebPartMenu.cs
- GeneralTransformGroup.cs
- SubMenuStyle.cs
- UdpChannelFactory.cs
- Visual3DCollection.cs
- SliderAutomationPeer.cs
- embossbitmapeffect.cs
- PictureBoxDesigner.cs
- XmlSchemaFacet.cs
- MasterPage.cs
- EntityConnectionStringBuilder.cs
- SchemaNamespaceManager.cs
- UIElementParagraph.cs
- HtmlForm.cs
- PopOutPanel.cs
- AnimatedTypeHelpers.cs
- KnownTypes.cs
- ThreadInterruptedException.cs
- Vector3DCollection.cs
- ToolStripDropDownClosedEventArgs.cs
- MenuItemAutomationPeer.cs
- ConfigXmlDocument.cs
- ToolStripSettings.cs
- SharedPerformanceCounter.cs
- KeyConstraint.cs
- TrustManagerPromptUI.cs
- StrongNameKeyPair.cs
- WindowsFormsHelpers.cs
- ObjectDataSourceFilteringEventArgs.cs
- UnmanagedHandle.cs
- EntityParameterCollection.cs
- SerializableAttribute.cs
- ResourceType.cs
- HttpModule.cs
- EncodingNLS.cs
- PixelFormatConverter.cs
- ZipIOLocalFileDataDescriptor.cs
- TextDataBindingHandler.cs
- BitmapMetadata.cs
- LicenseContext.cs
- ConnectorRouter.cs
- MemoryMappedViewAccessor.cs