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
- Single.cs
- TimeoutTimer.cs
- SqlFormatter.cs
- ITextView.cs
- DataGridViewAccessibleObject.cs
- PageSettings.cs
- TextWriter.cs
- XsltException.cs
- TrackingLocationCollection.cs
- SerializationStore.cs
- ComponentDispatcherThread.cs
- XmlParserContext.cs
- FastEncoder.cs
- MultiPropertyDescriptorGridEntry.cs
- ClickablePoint.cs
- TableSectionStyle.cs
- AspCompat.cs
- GeneralTransform3DTo2DTo3D.cs
- CacheAxisQuery.cs
- _BaseOverlappedAsyncResult.cs
- ErrorFormatter.cs
- WindowInteropHelper.cs
- SplineKeyFrames.cs
- JsonUriDataContract.cs
- CssStyleCollection.cs
- Container.cs
- StringReader.cs
- AssemblyBuilder.cs
- ThicknessAnimation.cs
- TabControlToolboxItem.cs
- BamlLocalizer.cs
- MessagePropertyFilter.cs
- BlockCollection.cs
- FontEmbeddingManager.cs
- EntityDataSourceWrapper.cs
- ExpressionDumper.cs
- SHA512Cng.cs
- PageParserFilter.cs
- FormViewPageEventArgs.cs
- MessageQueuePermissionEntry.cs
- MatrixAnimationBase.cs
- CodeFieldReferenceExpression.cs
- PointCollection.cs
- GotoExpression.cs
- Matrix.cs
- SAPICategories.cs
- TransformPattern.cs
- GenericTextProperties.cs
- Knowncolors.cs
- CharKeyFrameCollection.cs
- Matrix.cs
- SQLBinary.cs
- PenLineCapValidation.cs
- TypefaceCollection.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- SmiXetterAccessMap.cs
- TimeoutValidationAttribute.cs
- LinkArea.cs
- GraphicsContext.cs
- SignatureConfirmationElement.cs
- PartBasedPackageProperties.cs
- InsufficientExecutionStackException.cs
- ConfigurationLocation.cs
- ProcessHostConfigUtils.cs
- DSASignatureFormatter.cs
- HostedTcpTransportManager.cs
- CodeNamespaceImport.cs
- CultureInfo.cs
- Button.cs
- HttpWebResponse.cs
- ToolTipService.cs
- Emitter.cs
- ContentType.cs
- DataBoundLiteralControl.cs
- SmtpDigestAuthenticationModule.cs
- WebPartCollection.cs
- RightsManagementLicense.cs
- VisualBrush.cs
- LinqDataSourceStatusEventArgs.cs
- PseudoWebRequest.cs
- StackOverflowException.cs
- CatalogPart.cs
- ObjectDataSourceWizardForm.cs
- InputChannelBinder.cs
- GeometryHitTestParameters.cs
- RotateTransform3D.cs
- ADMembershipProvider.cs
- ListViewInsertedEventArgs.cs
- MarshalDirectiveException.cs
- DynamicResourceExtensionConverter.cs
- TableRowGroupCollection.cs
- AnimatedTypeHelpers.cs
- PackageStore.cs
- Socket.cs
- SmiConnection.cs
- GlobalizationAssembly.cs
- HttpStaticObjectsCollectionWrapper.cs
- FileDialog.cs
- StructureChangedEventArgs.cs
- RectAnimationUsingKeyFrames.cs