Code:
/ DotNET / DotNET / 8.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
- ProbeDuplexCD1AsyncResult.cs
- DesignerAdapterAttribute.cs
- TextDecoration.cs
- TextUtf8RawTextWriter.cs
- CodeSnippetExpression.cs
- IgnoreSectionHandler.cs
- Schema.cs
- OutputCacheProfileCollection.cs
- SourceChangedEventArgs.cs
- VirtualDirectoryMappingCollection.cs
- IndexingContentUnit.cs
- RbTree.cs
- CharAnimationBase.cs
- RoleServiceManager.cs
- SafeThreadHandle.cs
- PagePropertiesChangingEventArgs.cs
- CompressedStack.cs
- Filter.cs
- QilValidationVisitor.cs
- ProfilePropertySettings.cs
- MailWriter.cs
- TextEffect.cs
- DotAtomReader.cs
- TracedNativeMethods.cs
- StringDictionaryWithComparer.cs
- InheritanceContextChangedEventManager.cs
- PropertyChangedEventArgs.cs
- ComponentRenameEvent.cs
- DNS.cs
- EncryptedReference.cs
- DataRecordObjectView.cs
- DPCustomTypeDescriptor.cs
- AbsoluteQuery.cs
- PasswordDeriveBytes.cs
- Brush.cs
- XamlFxTrace.cs
- ListManagerBindingsCollection.cs
- SqlReferenceCollection.cs
- AppLevelCompilationSectionCache.cs
- StateItem.cs
- CodeLabeledStatement.cs
- XmlSchemaAttributeGroupRef.cs
- PrintPreviewGraphics.cs
- MimeMultiPart.cs
- XmlDocument.cs
- ProcessDesigner.cs
- PolygonHotSpot.cs
- FormsAuthentication.cs
- ErrorProvider.cs
- HtmlProps.cs
- DependencyPropertyValueSerializer.cs
- SqlDataRecord.cs
- BulletedList.cs
- StandardBindingElement.cs
- DynamicMetaObject.cs
- DatatypeImplementation.cs
- TextTrailingCharacterEllipsis.cs
- ClientBuildManagerCallback.cs
- PagesChangedEventArgs.cs
- SuppressMessageAttribute.cs
- XmlSerializerImportOptions.cs
- GroupQuery.cs
- SchemaCollectionPreprocessor.cs
- COM2Enum.cs
- RelatedView.cs
- TreeNodeEventArgs.cs
- __ComObject.cs
- safelink.cs
- XmlnsCache.cs
- ColumnResizeUndoUnit.cs
- PopupRoot.cs
- CompilerTypeWithParams.cs
- BrushConverter.cs
- HttpProfileGroupBase.cs
- ReachPageContentCollectionSerializerAsync.cs
- ControlsConfig.cs
- ScaleTransform.cs
- IdentityReference.cs
- SortAction.cs
- KeySpline.cs
- Compiler.cs
- TimeSpanConverter.cs
- SystemWebExtensionsSectionGroup.cs
- OrderByBuilder.cs
- WindowsGraphics2.cs
- MessageEncoder.cs
- TextFormatterImp.cs
- PlaceHolder.cs
- XPathChildIterator.cs
- ConversionContext.cs
- SamlDoNotCacheCondition.cs
- CompilationSection.cs
- ProcessingInstructionAction.cs
- DbConnectionPoolCounters.cs
- ReadContentAsBinaryHelper.cs
- ConfigXmlText.cs
- SqlDataSourceConnectionPanel.cs
- XmlSchemaElement.cs
- IncrementalReadDecoders.cs
- SecureEnvironment.cs