Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SiteMapPathDesigner.cs
- PrivilegeNotHeldException.cs
- ConfigurationValue.cs
- EntitySetRetriever.cs
- SinglePhaseEnlistment.cs
- HierarchicalDataSourceConverter.cs
- CriticalFinalizerObject.cs
- XXXInfos.cs
- Converter.cs
- WorkflowApplicationIdleEventArgs.cs
- MenuItemStyle.cs
- TriggerCollection.cs
- NotifyIcon.cs
- TextEvent.cs
- _Win32.cs
- MemoryMappedViewAccessor.cs
- SqlConnectionString.cs
- ResizeGrip.cs
- SyndicationSerializer.cs
- Point3DKeyFrameCollection.cs
- FixedTextContainer.cs
- DbMetaDataColumnNames.cs
- OrderingExpression.cs
- IDReferencePropertyAttribute.cs
- EditorBrowsableAttribute.cs
- SynchronizationScope.cs
- ConsumerConnectionPointCollection.cs
- SQLDateTimeStorage.cs
- EncodingStreamWrapper.cs
- DiagnosticsConfiguration.cs
- DataGridViewImageColumn.cs
- EventLogConfiguration.cs
- UnsafeNativeMethods.cs
- AnnotationHelper.cs
- PerspectiveCamera.cs
- InputScopeNameConverter.cs
- ThicknessAnimation.cs
- OracleException.cs
- DetailsViewDeleteEventArgs.cs
- RoutedUICommand.cs
- Not.cs
- Zone.cs
- LoadedEvent.cs
- ResourceExpressionEditorSheet.cs
- DoubleKeyFrameCollection.cs
- ToolStripPanelRow.cs
- Part.cs
- localization.cs
- LocalizedNameDescriptionPair.cs
- TreeViewImageKeyConverter.cs
- BaseCollection.cs
- VScrollProperties.cs
- MediaCommands.cs
- CultureInfoConverter.cs
- _SslSessionsCache.cs
- JsonSerializer.cs
- MenuItemBindingCollection.cs
- AccessDataSource.cs
- Console.cs
- CategoryAttribute.cs
- cookieexception.cs
- IteratorFilter.cs
- MultiByteCodec.cs
- SqlDataSourceSelectingEventArgs.cs
- TransformerInfoCollection.cs
- ModifierKeysValueSerializer.cs
- XNameTypeConverter.cs
- GACIdentityPermission.cs
- ByteFacetDescriptionElement.cs
- StandardToolWindows.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SiteMapDataSource.cs
- WebPartEditorApplyVerb.cs
- DispatcherOperation.cs
- DBParameter.cs
- LexicalChunk.cs
- DrawingAttributesDefaultValueFactory.cs
- NameSpaceEvent.cs
- FindResponse.cs
- WebBrowserUriTypeConverter.cs
- ExtenderControl.cs
- SerialReceived.cs
- WaitHandle.cs
- HostedElements.cs
- XmlException.cs
- SqlServer2KCompatibilityAnnotation.cs
- FunctionMappingTranslator.cs
- LogSwitch.cs
- KeyValueInternalCollection.cs
- PageCatalogPart.cs
- DataBindingCollection.cs
- EventLogEntry.cs
- Drawing.cs
- TextBox.cs
- WindowsTitleBar.cs
- ThreadAbortException.cs
- ExceptionHandler.cs
- CodeArrayIndexerExpression.cs
- InputScope.cs
- ObjectViewFactory.cs