Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / MissingFieldException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated protected MissingFieldException(SerializationInfo info, StreamingContext context) : base(info, context) { } public override String Message { [System.Security.SecuritySafeCritical] // auto-generated get { if (ClassName == null) { return base.Message; } else { // do any desired fixups to classname here. return 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
- SimpleParser.cs
- StaticFileHandler.cs
- WebPartDisplayMode.cs
- BasePropertyDescriptor.cs
- RelatedImageListAttribute.cs
- ScopelessEnumAttribute.cs
- BasicExpandProvider.cs
- Label.cs
- MultiPageTextView.cs
- WebPartAuthorizationEventArgs.cs
- ControlPaint.cs
- BamlResourceSerializer.cs
- AppDomainAttributes.cs
- PenThread.cs
- rsa.cs
- ZipIOExtraFieldZip64Element.cs
- CodeValidator.cs
- UnmanagedMemoryStreamWrapper.cs
- PageAdapter.cs
- MDIWindowDialog.cs
- BuildProviderUtils.cs
- TableRowGroup.cs
- AsyncOperation.cs
- Stylesheet.cs
- ProxyGenerationError.cs
- SyntaxCheck.cs
- Polyline.cs
- Rect3D.cs
- ReadOnlyCollectionBase.cs
- AnnotationResourceCollection.cs
- CodeStatementCollection.cs
- MultipleViewProviderWrapper.cs
- namescope.cs
- ReadOnlyCollection.cs
- SslStream.cs
- AnimationLayer.cs
- TimeSpanOrInfiniteValidator.cs
- SQLSingleStorage.cs
- EntityAdapter.cs
- NullableDoubleSumAggregationOperator.cs
- ImageFormat.cs
- HotSpotCollection.cs
- XmlWriterTraceListener.cs
- VSWCFServiceContractGenerator.cs
- GridViewUpdatedEventArgs.cs
- InternalPermissions.cs
- DictionaryEditChange.cs
- BuildProvider.cs
- WmpBitmapDecoder.cs
- EventLogEntryCollection.cs
- MessagePartSpecification.cs
- SimpleBitVector32.cs
- XmlElementAttribute.cs
- ImageMetadata.cs
- Panel.cs
- NamespaceInfo.cs
- FontInfo.cs
- Models.cs
- Matrix3DConverter.cs
- GenericIdentity.cs
- Bidi.cs
- SQLBytesStorage.cs
- TemplateKeyConverter.cs
- MLangCodePageEncoding.cs
- SmtpAuthenticationManager.cs
- DBAsyncResult.cs
- IIS7WorkerRequest.cs
- TableRowCollection.cs
- BamlResourceSerializer.cs
- ForEachDesigner.xaml.cs
- SettingsContext.cs
- CollectionContainer.cs
- NeutralResourcesLanguageAttribute.cs
- AppDomainCompilerProxy.cs
- IncrementalHitTester.cs
- MultiTouchSystemGestureLogic.cs
- FolderLevelBuildProvider.cs
- BrowserTree.cs
- VersionPair.cs
- ErrorWrapper.cs
- Light.cs
- DataGridPagerStyle.cs
- WeakReference.cs
- FormViewDesigner.cs
- JsonServiceDocumentSerializer.cs
- CodeTypeDeclaration.cs
- PrintPreviewControl.cs
- ServiceDescriptionContext.cs
- DragSelectionMessageFilter.cs
- FixedSOMGroup.cs
- XmlAttributes.cs
- DifferencingCollection.cs
- RichTextBoxAutomationPeer.cs
- WorkflowTraceTransfer.cs
- ObjectRef.cs
- Size3D.cs
- BrowsableAttribute.cs
- HierarchicalDataBoundControlAdapter.cs
- HuffModule.cs
- ObservableCollection.cs