Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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. } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TextBox.cs
- DeviceSpecificChoiceCollection.cs
- RepeaterCommandEventArgs.cs
- EventProviderWriter.cs
- UidManager.cs
- PerformanceCounterLib.cs
- ToolStripGripRenderEventArgs.cs
- ServicePointManager.cs
- ModulesEntry.cs
- TextTrailingCharacterEllipsis.cs
- ToolStripButton.cs
- Double.cs
- XmlSchemaValidator.cs
- FaultException.cs
- Setter.cs
- BitmapMetadataBlob.cs
- figurelengthconverter.cs
- CodeIterationStatement.cs
- securitycriticaldata.cs
- GridPatternIdentifiers.cs
- AssemblySettingAttributes.cs
- XmlNodeChangedEventManager.cs
- SecurityManager.cs
- UnicastIPAddressInformationCollection.cs
- ConnectionsZone.cs
- WebInvokeAttribute.cs
- CompiledQueryCacheEntry.cs
- QilNode.cs
- ControllableStoryboardAction.cs
- XmlEventCache.cs
- FrameworkTemplate.cs
- CodeTypeReferenceExpression.cs
- StringDictionaryCodeDomSerializer.cs
- ConfigurationLockCollection.cs
- EventLog.cs
- CultureTableRecord.cs
- tooltip.cs
- WaveHeader.cs
- TagElement.cs
- RIPEMD160Managed.cs
- ServicesUtilities.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- UserControlFileEditor.cs
- Command.cs
- ViewPort3D.cs
- SimpleColumnProvider.cs
- WorkflowTimerService.cs
- NonVisualControlAttribute.cs
- XamlReader.cs
- MediaTimeline.cs
- TreeNodeCollection.cs
- ListControlBuilder.cs
- StringSorter.cs
- MDIClient.cs
- TextSearch.cs
- AssemblyCollection.cs
- ContextInformation.cs
- Line.cs
- XmlSchemaException.cs
- LocalizedNameDescriptionPair.cs
- _LoggingObject.cs
- ComEventsMethod.cs
- CacheRequest.cs
- DbMetaDataColumnNames.cs
- EmptyTextWriter.cs
- XPathNodePointer.cs
- ActivityExecutor.cs
- Label.cs
- ToolStripMenuItem.cs
- XmlSchemas.cs
- VScrollBar.cs
- WorkflowPrinting.cs
- RowUpdatingEventArgs.cs
- Control.cs
- XmlAggregates.cs
- LingerOption.cs
- SafeEventLogReadHandle.cs
- PageAsyncTaskManager.cs
- DataGridItem.cs
- XmlNamespaceManager.cs
- StandardToolWindows.cs
- ImportOptions.cs
- Token.cs
- XPathItem.cs
- CqlGenerator.cs
- OdbcRowUpdatingEvent.cs
- GenericXmlSecurityToken.cs
- Content.cs
- TypeDescriptionProvider.cs
- SafeFindHandle.cs
- DocumentXPathNavigator.cs
- ClientRuntimeConfig.cs
- ImmutableCommunicationTimeouts.cs
- XmlSchemaIdentityConstraint.cs
- HttpWrapper.cs
- TraceHelpers.cs
- TableHeaderCell.cs
- Type.cs
- ControlParameter.cs
- Rect.cs