Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- _FixedSizeReader.cs
- ContactManager.cs
- HighContrastHelper.cs
- SafeSecurityHelper.cs
- StyleModeStack.cs
- Logging.cs
- FlowNode.cs
- VectorCollection.cs
- DecimalAnimation.cs
- CodeRemoveEventStatement.cs
- DeclarativeCatalogPartDesigner.cs
- RequiredFieldValidator.cs
- HitTestDrawingContextWalker.cs
- ImportFileRequest.cs
- TransformValueSerializer.cs
- ValueType.cs
- CodeSnippetStatement.cs
- ToolboxComponentsCreatedEventArgs.cs
- WebContext.cs
- ConfigXmlDocument.cs
- ActivityDesigner.cs
- JsonReaderWriterFactory.cs
- SectionXmlInfo.cs
- XmlHelper.cs
- PersonalizationDictionary.cs
- CodeTypeDeclarationCollection.cs
- ScriptMethodAttribute.cs
- PartitionResolver.cs
- SafeIUnknown.cs
- X509ServiceCertificateAuthenticationElement.cs
- SmiEventSink_DeferedProcessing.cs
- LineProperties.cs
- Paragraph.cs
- FontSourceCollection.cs
- ViewStateModeByIdAttribute.cs
- HtmlElementEventArgs.cs
- MetadataArtifactLoaderFile.cs
- QueryStoreStatusRequest.cs
- DataServiceQuery.cs
- WebPart.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SchemaManager.cs
- Menu.cs
- TypeSystem.cs
- SqlTransaction.cs
- TableLayoutSettings.cs
- CallContext.cs
- SortQuery.cs
- TypeElement.cs
- CompositeCollectionView.cs
- SmiSettersStream.cs
- XmlIncludeAttribute.cs
- StatusBarItem.cs
- MutexSecurity.cs
- TemplateBindingExtension.cs
- SystemIPGlobalStatistics.cs
- TextDecorations.cs
- LiteralDesigner.cs
- WindowsListBox.cs
- XmlWriterDelegator.cs
- ListItemDetailViewAttribute.cs
- FacetDescriptionElement.cs
- DateTimeOffsetConverter.cs
- RelationshipWrapper.cs
- SiteIdentityPermission.cs
- CodeTypeReferenceSerializer.cs
- SerializerProvider.cs
- ActionNotSupportedException.cs
- ThreadAbortException.cs
- DescendantOverDescendantQuery.cs
- ImageListImage.cs
- HMACSHA384.cs
- FormsAuthenticationConfiguration.cs
- EntityDataReader.cs
- SpnEndpointIdentityExtension.cs
- PreviewKeyDownEventArgs.cs
- ExpressionEditorAttribute.cs
- HitTestParameters.cs
- CancellationHandler.cs
- RepeaterItem.cs
- SqlFactory.cs
- QualificationDataAttribute.cs
- TableItemPatternIdentifiers.cs
- PostBackOptions.cs
- BaseTransportHeaders.cs
- ToolStripItemCollection.cs
- OrderByQueryOptionExpression.cs
- InternalPermissions.cs
- formatter.cs
- Transform.cs
- EventDescriptor.cs
- CustomWebEventKey.cs
- ResourcePermissionBase.cs
- InternalException.cs
- DataGridPageChangedEventArgs.cs
- Underline.cs
- UnsafeNativeMethodsCLR.cs
- XamlPoint3DCollectionSerializer.cs
- SQLBytes.cs
- VisualBasicSettingsHandler.cs