Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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. } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QilLoop.cs
- DelimitedListTraceListener.cs
- SoapInteropTypes.cs
- DocumentEventArgs.cs
- PathNode.cs
- ModuleBuilderData.cs
- ClientSettingsProvider.cs
- GeometryModel3D.cs
- CompiledIdentityConstraint.cs
- BinaryConverter.cs
- PrimitiveCodeDomSerializer.cs
- TreeViewEvent.cs
- SqlNotificationEventArgs.cs
- SiteOfOriginContainer.cs
- NullableIntAverageAggregationOperator.cs
- SqlInternalConnectionSmi.cs
- ColorConvertedBitmap.cs
- ViewBox.cs
- UnionCodeGroup.cs
- NameTable.cs
- BindingValueChangedEventArgs.cs
- DatePicker.cs
- CaseInsensitiveComparer.cs
- AttributeEmitter.cs
- PcmConverter.cs
- IsolatedStorageSecurityState.cs
- DoubleLinkListEnumerator.cs
- SettingsContext.cs
- DispatchChannelSink.cs
- DesignObjectWrapper.cs
- ReadOnlyAttribute.cs
- ViewSimplifier.cs
- CqlParserHelpers.cs
- UnsafeNativeMethods.cs
- ThemeDirectoryCompiler.cs
- IdentityManager.cs
- MiniLockedBorderGlyph.cs
- VariantWrapper.cs
- RoleManagerModule.cs
- ByteStream.cs
- TreeIterator.cs
- DataControlFieldHeaderCell.cs
- WindowsFormsLinkLabel.cs
- ConnectivityStatus.cs
- XsltSettings.cs
- PropertySegmentSerializationProvider.cs
- BounceEase.cs
- ButtonPopupAdapter.cs
- VisualBasicValue.cs
- FormViewModeEventArgs.cs
- ObjRef.cs
- Tag.cs
- CancellationTokenRegistration.cs
- ReflectionUtil.cs
- EntityFrameworkVersions.cs
- TrackBar.cs
- Manipulation.cs
- XmlLoader.cs
- JavaScriptSerializer.cs
- TransactionInformation.cs
- webclient.cs
- ButtonStandardAdapter.cs
- TableLayoutPanelBehavior.cs
- TextClipboardData.cs
- HandlerBase.cs
- ClientProxyGenerator.cs
- FastEncoderStatics.cs
- _ConnectOverlappedAsyncResult.cs
- ProfileParameter.cs
- RowToFieldTransformer.cs
- ObjectAnimationUsingKeyFrames.cs
- NotSupportedException.cs
- WebPartExportVerb.cs
- DocumentViewerBaseAutomationPeer.cs
- InvokeProviderWrapper.cs
- DebugInfo.cs
- ProcessHostConfigUtils.cs
- IncrementalCompileAnalyzer.cs
- SigningProgress.cs
- SHA256.cs
- ExpandSegment.cs
- DiagnosticEventProvider.cs
- EntityDataSourceChangedEventArgs.cs
- SqlHelper.cs
- Codec.cs
- CommandTreeTypeHelper.cs
- AssertFilter.cs
- DataGridCommandEventArgs.cs
- CreateUserWizard.cs
- RectangleF.cs
- JapaneseCalendar.cs
- DrawingAttributesDefaultValueFactory.cs
- AlternationConverter.cs
- SchemaSetCompiler.cs
- SystemColorTracker.cs
- DependencyPropertyDescriptor.cs
- InlineObject.cs
- SqlReorderer.cs
- BooleanAnimationUsingKeyFrames.cs
- RuntimeConfig.cs