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
- TreeNodeSelectionProcessor.cs
- SecurityResources.cs
- CallContext.cs
- QueryHandler.cs
- ToolBarTray.cs
- TextWriterTraceListener.cs
- ToolBarOverflowPanel.cs
- ImmComposition.cs
- BooleanKeyFrameCollection.cs
- TransmissionStrategy.cs
- EntityDataSourceChangingEventArgs.cs
- processwaithandle.cs
- SqlClientWrapperSmiStream.cs
- ContentPresenter.cs
- ConnectionManager.cs
- Root.cs
- TabItemAutomationPeer.cs
- RectAnimationUsingKeyFrames.cs
- IPHostEntry.cs
- DataBoundControlAdapter.cs
- MiniMapControl.xaml.cs
- ZipIOModeEnforcingStream.cs
- _ConnectionGroup.cs
- StringConverter.cs
- PolicyStatement.cs
- RSAPKCS1KeyExchangeFormatter.cs
- HostedTransportConfigurationBase.cs
- AnimatedTypeHelpers.cs
- WmfPlaceableFileHeader.cs
- ByteStreamGeometryContext.cs
- TemplateControlBuildProvider.cs
- ListControlConvertEventArgs.cs
- ZipPackagePart.cs
- ProxyHelper.cs
- ToolStripItemEventArgs.cs
- RegexInterpreter.cs
- versioninfo.cs
- CatalogZoneDesigner.cs
- ISAPIApplicationHost.cs
- HttpCapabilitiesSectionHandler.cs
- MachineKeySection.cs
- UnsafeNativeMethods.cs
- GridViewHeaderRowPresenter.cs
- SqlProfileProvider.cs
- XmlReaderSettings.cs
- DescendantOverDescendantQuery.cs
- RegexReplacement.cs
- RNGCryptoServiceProvider.cs
- PreDigestedSignedInfo.cs
- SafeRightsManagementQueryHandle.cs
- ChannelManager.cs
- QilExpression.cs
- FormsAuthenticationConfiguration.cs
- SafeSystemMetrics.cs
- PeerEndPoint.cs
- ResourceReferenceExpressionConverter.cs
- MultiPartWriter.cs
- ValueUtilsSmi.cs
- ChannelEndpointElement.cs
- ToolStripDropDownClosedEventArgs.cs
- MediaElement.cs
- HandlerBase.cs
- ListBoxItem.cs
- XmlEntity.cs
- SymbolType.cs
- TextProperties.cs
- DrawingGroupDrawingContext.cs
- TdsEnums.cs
- OracleInfoMessageEventArgs.cs
- ByteStack.cs
- FormsAuthenticationModule.cs
- DecoratedNameAttribute.cs
- FunctionQuery.cs
- DocumentSchemaValidator.cs
- BasicViewGenerator.cs
- WebControlAdapter.cs
- PopupEventArgs.cs
- TrustManagerMoreInformation.cs
- DispatcherFrame.cs
- DBConnectionString.cs
- ObjectQueryState.cs
- CommandValueSerializer.cs
- HelpEvent.cs
- Geometry.cs
- MethodCallConverter.cs
- ToolBarOverflowPanel.cs
- FormViewInsertedEventArgs.cs
- PerformanceCounterLib.cs
- XmlBinaryReader.cs
- CardSpaceException.cs
- TextAction.cs
- SqlTrackingService.cs
- CodeArrayCreateExpression.cs
- GridViewAutomationPeer.cs
- XmlSchemaImport.cs
- SrgsRuleRef.cs
- GestureRecognizer.cs
- EventManager.cs
- TemplateKeyConverter.cs
- jithelpers.cs