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
- ClientSideQueueItem.cs
- ConfigXmlAttribute.cs
- TextPointer.cs
- DataServiceEntityAttribute.cs
- DocumentSequenceHighlightLayer.cs
- SymbolTable.cs
- SafeFindHandle.cs
- PropertyConverter.cs
- CommandBinding.cs
- MatrixTransform.cs
- OrthographicCamera.cs
- StrokeCollection.cs
- ImageList.cs
- TemplateColumn.cs
- ICspAsymmetricAlgorithm.cs
- LinkButton.cs
- HMACMD5.cs
- DispatcherHooks.cs
- HttpChannelFactory.cs
- TraversalRequest.cs
- EventLogPermission.cs
- ToolStripDropTargetManager.cs
- Form.cs
- WebPartAddingEventArgs.cs
- UiaCoreProviderApi.cs
- DtrList.cs
- QueryPageSettingsEventArgs.cs
- Formatter.cs
- ACL.cs
- HtmlInputButton.cs
- DataGridViewRowEventArgs.cs
- RegisteredScript.cs
- InputLanguage.cs
- InputLangChangeRequestEvent.cs
- TagPrefixAttribute.cs
- DataTableNewRowEvent.cs
- PropertyInformation.cs
- XamlPointCollectionSerializer.cs
- HttpHandler.cs
- Int32AnimationBase.cs
- FieldDescriptor.cs
- ObjectViewEntityCollectionData.cs
- PEFileEvidenceFactory.cs
- CompareInfo.cs
- TreeNodeCollection.cs
- XmlQualifiedNameTest.cs
- CacheVirtualItemsEvent.cs
- Command.cs
- SiteMapDataSourceView.cs
- TemplateXamlParser.cs
- RemoteWebConfigurationHostServer.cs
- OwnerDrawPropertyBag.cs
- OrderByQueryOptionExpression.cs
- TextEndOfParagraph.cs
- FlowDocument.cs
- DataRowChangeEvent.cs
- HtmlTable.cs
- BamlRecordWriter.cs
- SqlCrossApplyToCrossJoin.cs
- SemaphoreSlim.cs
- SymbolDocumentGenerator.cs
- basecomparevalidator.cs
- OleDbSchemaGuid.cs
- XmlTypeMapping.cs
- AppDomainProtocolHandler.cs
- BadImageFormatException.cs
- HitTestDrawingContextWalker.cs
- CmsInterop.cs
- ProfileEventArgs.cs
- ApplicationFileCodeDomTreeGenerator.cs
- StackSpiller.Generated.cs
- EventProperty.cs
- Calendar.cs
- DoubleCollection.cs
- RegexWriter.cs
- EditCommandColumn.cs
- SchemaElementDecl.cs
- MethodBuilderInstantiation.cs
- GeometryConverter.cs
- BitmapDecoder.cs
- StylusOverProperty.cs
- LoginName.cs
- GridViewUpdateEventArgs.cs
- SqlAliaser.cs
- ThreadSafeList.cs
- ConnectionProviderAttribute.cs
- MetadataArtifactLoaderCompositeResource.cs
- UserControlAutomationPeer.cs
- KeyedPriorityQueue.cs
- DesignSurfaceCollection.cs
- ClientEventManager.cs
- safex509handles.cs
- OrderedDictionary.cs
- Icon.cs
- QueryRewriter.cs
- LogicalExpressionTypeConverter.cs
- TransformerInfoCollection.cs
- OrderByQueryOptionExpression.cs
- ListItem.cs
- Operand.cs