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
- DataGridBoundColumn.cs
- DoubleLinkList.cs
- RoutedEventHandlerInfo.cs
- Parameter.cs
- SynchronizedDisposablePool.cs
- TableRow.cs
- DataExpression.cs
- SafeMILHandleMemoryPressure.cs
- CriticalHandle.cs
- CodeDomSerializationProvider.cs
- FrameworkElementFactoryMarkupObject.cs
- ErrorRuntimeConfig.cs
- RelationshipEndMember.cs
- EventManager.cs
- ClockGroup.cs
- ToggleButton.cs
- ResourceReferenceKeyNotFoundException.cs
- SqlClientMetaDataCollectionNames.cs
- TextEditorLists.cs
- ManipulationStartingEventArgs.cs
- DBConnection.cs
- SchemaConstraints.cs
- ErrorProvider.cs
- ListViewItemSelectionChangedEvent.cs
- WebPageTraceListener.cs
- SetterTriggerConditionValueConverter.cs
- NetworkStream.cs
- SchemaAttDef.cs
- DataTransferEventArgs.cs
- OraclePermission.cs
- DrawingGroup.cs
- FontWeight.cs
- ExecutionEngineException.cs
- ClusterSafeNativeMethods.cs
- DriveNotFoundException.cs
- PseudoWebRequest.cs
- ResolveCriteriaCD1.cs
- Timer.cs
- Events.cs
- DataControlPagerLinkButton.cs
- SqlDuplicator.cs
- XhtmlBasicCalendarAdapter.cs
- MultiBinding.cs
- XXXOnTypeBuilderInstantiation.cs
- SymbolDocumentGenerator.cs
- OracleSqlParser.cs
- DataStreamFromComStream.cs
- LicenseContext.cs
- StorageComplexTypeMapping.cs
- MergeExecutor.cs
- GcHandle.cs
- WindowsRichEditRange.cs
- XmlSerializationReader.cs
- IndentTextWriter.cs
- MatrixStack.cs
- FixedSOMElement.cs
- ActiveXSite.cs
- login.cs
- LinearQuaternionKeyFrame.cs
- TextStore.cs
- EnumUnknown.cs
- TextEffect.cs
- NamespaceInfo.cs
- PropertyTab.cs
- SoundPlayer.cs
- NetNamedPipeSecurityMode.cs
- TypeUtils.cs
- DataServiceResponse.cs
- MultipleViewPattern.cs
- PrinterSettings.cs
- AutomationEventArgs.cs
- ColumnMapTranslator.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- TransformPatternIdentifiers.cs
- OdbcException.cs
- MulticastIPAddressInformationCollection.cs
- MailWebEventProvider.cs
- PerformanceCountersElement.cs
- ParallelTimeline.cs
- RectangleHotSpot.cs
- FocusChangedEventArgs.cs
- QueryCursorEventArgs.cs
- RelationshipManager.cs
- HttpListenerException.cs
- SettingsAttributes.cs
- mansign.cs
- DbConnectionPoolOptions.cs
- RegexWorker.cs
- ConnectionsZone.cs
- GridViewEditEventArgs.cs
- TransformCollection.cs
- GeneralTransform3DTo2DTo3D.cs
- JsonFormatReaderGenerator.cs
- QueryStringConverter.cs
- RSAProtectedConfigurationProvider.cs
- XmlSchemaSequence.cs
- InvalidDataException.cs
- SiteMapNodeItem.cs
- EncodingInfo.cs
- ArgIterator.cs