Code:
/ FX-1434 / FX-1434 / 1.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
- Type.cs
- XmlAttributeCollection.cs
- securitycriticaldataClass.cs
- TextRangeEdit.cs
- UrlPropertyAttribute.cs
- ToolZone.cs
- PreviewPrintController.cs
- HandleRef.cs
- ObjectItemCollection.cs
- PinProtectionHelper.cs
- RawTextInputReport.cs
- Decoder.cs
- ValidationErrorInfo.cs
- HttpInputStream.cs
- WebHttpElement.cs
- ListViewCancelEventArgs.cs
- ObjectDataSourceView.cs
- NativeMethods.cs
- StorageFunctionMapping.cs
- QilValidationVisitor.cs
- PropertyIdentifier.cs
- StaticResourceExtension.cs
- ConcurrentStack.cs
- NetworkStream.cs
- ButtonChrome.cs
- SoapFault.cs
- Html32TextWriter.cs
- ReadOnlyDictionary.cs
- IndependentlyAnimatedPropertyMetadata.cs
- SecurityChannelFactory.cs
- TextServicesProperty.cs
- DataRelation.cs
- InvalidOleVariantTypeException.cs
- DataTemplateKey.cs
- PrintPreviewGraphics.cs
- TreeNodeEventArgs.cs
- RuntimeResourceSet.cs
- LockCookie.cs
- IList.cs
- SmtpCommands.cs
- TreeNodeEventArgs.cs
- Border.cs
- MemberInitExpression.cs
- HandlerMappingMemo.cs
- TemplateControl.cs
- UdpContractFilterBehavior.cs
- HttpRequest.cs
- __ComObject.cs
- VisualStyleInformation.cs
- PrivateFontCollection.cs
- PageThemeBuildProvider.cs
- TCPListener.cs
- BitConverter.cs
- SEHException.cs
- Vector3DValueSerializer.cs
- DefaultExpressionVisitor.cs
- SqlHelper.cs
- HashRepartitionStream.cs
- HttpListener.cs
- Camera.cs
- ForeignConstraint.cs
- AssertUtility.cs
- FormViewDeleteEventArgs.cs
- TypeContext.cs
- ApplicationHost.cs
- PointConverter.cs
- ADMembershipUser.cs
- InkPresenter.cs
- RadioButtonRenderer.cs
- RequestQueue.cs
- SafeProcessHandle.cs
- TrackingProfileCache.cs
- CatalogPartChrome.cs
- XmlDocumentFragment.cs
- GenericIdentity.cs
- EntryWrittenEventArgs.cs
- DateTimeOffset.cs
- PartialToken.cs
- Floater.cs
- ExpressionBuilderCollection.cs
- SettingsPropertyValueCollection.cs
- SettingsAttributeDictionary.cs
- VScrollProperties.cs
- InputMethodStateTypeInfo.cs
- ImageFormat.cs
- WindowsListViewGroup.cs
- DispatchOperationRuntime.cs
- IndependentAnimationStorage.cs
- ServiceParser.cs
- NGCPageContentSerializerAsync.cs
- DbProviderFactoriesConfigurationHandler.cs
- ResXResourceReader.cs
- SerializationHelper.cs
- QueryExpr.cs
- HttpHeaderCollection.cs
- NumericUpDown.cs
- GAC.cs
- SynchronizationLockException.cs
- RectAnimationClockResource.cs
- panel.cs