Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- TreeViewTemplateSelector.cs
- EntitySetDataBindingList.cs
- QueryStatement.cs
- Timer.cs
- InputLangChangeEvent.cs
- TextAutomationPeer.cs
- MetadataHelper.cs
- IgnoreSectionHandler.cs
- HttpResponseHeader.cs
- TypeInfo.cs
- JavascriptCallbackResponseProperty.cs
- Directory.cs
- SmtpDigestAuthenticationModule.cs
- CodeValidator.cs
- X509Extension.cs
- SecurityTokenSerializer.cs
- ToolStripScrollButton.cs
- SiteIdentityPermission.cs
- ByteStorage.cs
- NetMsmqSecurityElement.cs
- StandardCommands.cs
- TrackBarRenderer.cs
- RegistrySecurity.cs
- EmptyCollection.cs
- SafeNativeMethods.cs
- ReflectionUtil.cs
- ProgressPage.cs
- recordstatefactory.cs
- XPathNodeIterator.cs
- QueryPageSettingsEventArgs.cs
- LinqDataSource.cs
- FillBehavior.cs
- MembershipUser.cs
- VBIdentifierTrimConverter.cs
- __FastResourceComparer.cs
- RC2CryptoServiceProvider.cs
- DesignerAttribute.cs
- CodeIterationStatement.cs
- MultiViewDesigner.cs
- ArgumentException.cs
- DropDownButton.cs
- PrintDocument.cs
- WindowsRebar.cs
- IntSecurity.cs
- TextBox.cs
- HtmlTitle.cs
- InternalConfigHost.cs
- Span.cs
- StylusShape.cs
- GcSettings.cs
- Win32Exception.cs
- MessageHeaderInfoTraceRecord.cs
- ObjectHelper.cs
- SmiXetterAccessMap.cs
- DataSource.cs
- CompositionAdorner.cs
- EnumDataContract.cs
- ThreadStartException.cs
- TypePropertyEditor.cs
- GroupBox.cs
- XmlNamespaceMapping.cs
- XsdBuilder.cs
- SystemIPGlobalStatistics.cs
- ScrollChrome.cs
- DoubleStorage.cs
- ListenerAdapter.cs
- ToolStripContentPanelRenderEventArgs.cs
- SystemThemeKey.cs
- SystemFonts.cs
- TemplateNameScope.cs
- NonVisualControlAttribute.cs
- VisualTarget.cs
- HtmlInputHidden.cs
- TextTreeTextBlock.cs
- SafeLocalAllocation.cs
- PrinterResolution.cs
- ByteArrayHelperWithString.cs
- CancellationTokenRegistration.cs
- BitmapCodecInfo.cs
- HyperLinkColumn.cs
- PersonalizationStateInfo.cs
- SharedConnectionListener.cs
- FixedSOMGroup.cs
- RunClient.cs
- ICspAsymmetricAlgorithm.cs
- UnsafePeerToPeerMethods.cs
- MobileSysDescriptionAttribute.cs
- DataMemberAttribute.cs
- SynchronizedReadOnlyCollection.cs
- PathSegmentCollection.cs
- TextComposition.cs
- InlineUIContainer.cs
- XmlNamespaceDeclarationsAttribute.cs
- PTManager.cs
- FontDifferentiator.cs
- TextElementAutomationPeer.cs
- Processor.cs
- COM2Enum.cs
- HashCryptoHandle.cs
- ListViewGroupItemCollection.cs