Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Geometry3D.cs
- IntSecurity.cs
- RelatedCurrencyManager.cs
- CultureNotFoundException.cs
- PageParser.cs
- MiniModule.cs
- HttpHostedTransportConfiguration.cs
- ParentQuery.cs
- NetworkInformationPermission.cs
- StickyNoteAnnotations.cs
- PixelFormatConverter.cs
- XmlSignatureManifest.cs
- XmlSchemaSimpleContentRestriction.cs
- DynamicActivityProperty.cs
- IResourceProvider.cs
- DataGridViewBindingCompleteEventArgs.cs
- ResourcePermissionBase.cs
- MouseDevice.cs
- ResourcesBuildProvider.cs
- _FtpDataStream.cs
- XPathNavigatorReader.cs
- ScriptIgnoreAttribute.cs
- RegistryPermission.cs
- DelegateArgument.cs
- RegistrationServices.cs
- ArrayTypeMismatchException.cs
- ProcessRequestArgs.cs
- FaultConverter.cs
- SqlConnectionHelper.cs
- SQlBooleanStorage.cs
- Socket.cs
- PrimitiveXmlSerializers.cs
- ThreadAttributes.cs
- SourceLineInfo.cs
- CodeMethodReturnStatement.cs
- StringSource.cs
- ObjectStateManager.cs
- X509UI.cs
- ToolStripItemCollection.cs
- TimelineClockCollection.cs
- ReadOnlyDataSourceView.cs
- ComplusEndpointConfigContainer.cs
- BlockUIContainer.cs
- ContentDisposition.cs
- CqlGenerator.cs
- ContextQuery.cs
- JsonXmlDataContract.cs
- BinaryObjectInfo.cs
- MimeTypeAttribute.cs
- TextBoxAutomationPeer.cs
- FileSecurity.cs
- ReflectionPermission.cs
- StrokeSerializer.cs
- AudienceUriMode.cs
- HwndKeyboardInputProvider.cs
- DependentList.cs
- BreakSafeBase.cs
- DataGridViewSelectedCellCollection.cs
- EmptyWorkItem.cs
- BufferBuilder.cs
- NavigatorInput.cs
- TransportationConfigurationTypeInstallComponent.cs
- MenuItemCollection.cs
- SignatureConfirmations.cs
- MarginsConverter.cs
- SortDescriptionCollection.cs
- ObjectQueryState.cs
- Profiler.cs
- Tile.cs
- XmlSchemaRedefine.cs
- TextFormatterHost.cs
- DesignerAttribute.cs
- FontNamesConverter.cs
- FixedSOMPageConstructor.cs
- SqlDependencyListener.cs
- DisplayNameAttribute.cs
- ExtensionFile.cs
- BinarySerializer.cs
- CodeCompileUnit.cs
- SQLDecimalStorage.cs
- SafeViewOfFileHandle.cs
- ManualResetEvent.cs
- ProgressBarRenderer.cs
- BaseTemplateBuildProvider.cs
- ImmutableCommunicationTimeouts.cs
- Int32Animation.cs
- AlphaSortedEnumConverter.cs
- MessagePropertyAttribute.cs
- SqlDataSourceQuery.cs
- XamlTemplateSerializer.cs
- AdornerHitTestResult.cs
- AttributedMetaModel.cs
- ValidationError.cs
- WebPartTracker.cs
- _ListenerRequestStream.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- ValidationResults.cs
- ModifierKeysConverter.cs
- LogArchiveSnapshot.cs
- WeakReferenceKey.cs