Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / MissingFieldException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated protected MissingFieldException(SerializationInfo info, StreamingContext context) : base(info, context) { } public override String Message { [System.Security.SecuritySafeCritical] // auto-generated get { if (ClassName == null) { return base.Message; } else { // do any desired fixups to classname here. return 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
- CodeAttributeDeclaration.cs
- CharacterMetricsDictionary.cs
- RemotingException.cs
- _LocalDataStore.cs
- _ListenerRequestStream.cs
- WindowsGraphicsWrapper.cs
- SQLBinaryStorage.cs
- Model3D.cs
- XmlChildEnumerator.cs
- WinInet.cs
- LexicalChunk.cs
- FrameworkPropertyMetadata.cs
- DeclaredTypeValidator.cs
- TextDecorationCollection.cs
- SqlTriggerAttribute.cs
- HitTestParameters.cs
- ZipIOExtraFieldPaddingElement.cs
- RegexTree.cs
- MenuBase.cs
- DataViewManagerListItemTypeDescriptor.cs
- ClientConvert.cs
- EventNotify.cs
- BatchServiceHost.cs
- PartBasedPackageProperties.cs
- EventLogPermissionEntry.cs
- ClientBuildManager.cs
- EventSourceCreationData.cs
- SafeIUnknown.cs
- SQLInt64Storage.cs
- Grant.cs
- LeafCellTreeNode.cs
- DocumentViewerBase.cs
- PowerEase.cs
- ListBindingConverter.cs
- PtsContext.cs
- WebWorkflowRole.cs
- ParserStack.cs
- ASCIIEncoding.cs
- CreateParams.cs
- PointCollection.cs
- AnnotationComponentManager.cs
- TextElement.cs
- RelationshipNavigation.cs
- WinInetCache.cs
- SecurityBindingElementImporter.cs
- SQLStringStorage.cs
- bidPrivateBase.cs
- TextRunTypographyProperties.cs
- SecurityDocument.cs
- HtmlTable.cs
- ContentDisposition.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ContentFileHelper.cs
- connectionpool.cs
- DesignSurfaceServiceContainer.cs
- EventlogProvider.cs
- ToolBarTray.cs
- BooleanKeyFrameCollection.cs
- InternalMappingException.cs
- ResourceBinder.cs
- BridgeDataReader.cs
- Accessors.cs
- XmlSchemaDatatype.cs
- SafeNativeMethods.cs
- BamlRecordHelper.cs
- CommandBindingCollection.cs
- StyleHelper.cs
- RowVisual.cs
- Button.cs
- XPathExpr.cs
- MetadataItemCollectionFactory.cs
- RelOps.cs
- CurrentChangedEventManager.cs
- TypeTypeConverter.cs
- TableLayoutColumnStyleCollection.cs
- ResXBuildProvider.cs
- ThemeableAttribute.cs
- Vector3DKeyFrameCollection.cs
- HttpModuleActionCollection.cs
- ClusterRegistryConfigurationProvider.cs
- ToolBarPanel.cs
- XsltSettings.cs
- _IPv4Address.cs
- connectionpool.cs
- SafePEFileHandle.cs
- KernelTypeValidation.cs
- SharedUtils.cs
- HostProtectionException.cs
- GetWinFXPath.cs
- ObjectQueryState.cs
- EventLogger.cs
- ResourceWriter.cs
- ServicePointManagerElement.cs
- HttpCookieCollection.cs
- SecurityDocument.cs
- SafeNativeMethodsCLR.cs
- SvcMapFile.cs
- XamlSerializer.cs
- Line.cs
- ComponentResourceKey.cs