Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FileRecordSequenceHelper.cs
- While.cs
- TextEditorLists.cs
- BindingExpressionBase.cs
- FileVersionInfo.cs
- WSHttpBindingElement.cs
- UnsafeNativeMethodsCLR.cs
- OdbcEnvironment.cs
- DoubleStorage.cs
- Vector3DCollection.cs
- VirtualizingStackPanel.cs
- GridProviderWrapper.cs
- ConfigPathUtility.cs
- ItemCheckEvent.cs
- SubpageParaClient.cs
- ArgIterator.cs
- HttpRequestCacheValidator.cs
- PanningMessageFilter.cs
- LayoutUtils.cs
- PersonalizationStateQuery.cs
- RankException.cs
- BulletedList.cs
- CustomCategoryAttribute.cs
- PrivilegeNotHeldException.cs
- PartitionResolver.cs
- SqlBuilder.cs
- HtmlInputImage.cs
- ExpressionPrefixAttribute.cs
- PartialCachingAttribute.cs
- TreeView.cs
- ClientRuntimeConfig.cs
- SmtpNetworkElement.cs
- ConsoleKeyInfo.cs
- SocketInformation.cs
- Encoding.cs
- XmlHierarchyData.cs
- SchemaSetCompiler.cs
- StorageEntityContainerMapping.cs
- TableLayoutCellPaintEventArgs.cs
- RevocationPoint.cs
- ComponentEditorForm.cs
- SafeSystemMetrics.cs
- SpotLight.cs
- Identity.cs
- BufferedReadStream.cs
- CodeBlockBuilder.cs
- keycontainerpermission.cs
- embossbitmapeffect.cs
- ThreadExceptionEvent.cs
- _DigestClient.cs
- StyleXamlParser.cs
- ClassHandlersStore.cs
- DataSourceXmlSerializer.cs
- SqlDataSourceView.cs
- DataObjectSettingDataEventArgs.cs
- RealizationContext.cs
- Axis.cs
- Rule.cs
- WindowsListBox.cs
- HwndTarget.cs
- DataListCommandEventArgs.cs
- DllNotFoundException.cs
- ToolStripEditorManager.cs
- XmlWrappingReader.cs
- TemplateControl.cs
- MasterPageParser.cs
- DesignerSelectionListAdapter.cs
- WebCategoryAttribute.cs
- XmlReader.cs
- BaseCollection.cs
- TrustSection.cs
- Ticks.cs
- Type.cs
- CatalogZoneAutoFormat.cs
- AuthStoreRoleProvider.cs
- StickyNoteAnnotations.cs
- HtmlLink.cs
- GridViewHeaderRowPresenter.cs
- PersonalizableAttribute.cs
- AnchoredBlock.cs
- InstallerTypeAttribute.cs
- ToolboxDataAttribute.cs
- __TransparentProxy.cs
- Timer.cs
- PopupEventArgs.cs
- ViewBase.cs
- ListDictionaryInternal.cs
- WaitHandleCannotBeOpenedException.cs
- VScrollProperties.cs
- GridViewColumnHeader.cs
- MulticastDelegate.cs
- EntityDataSourceDataSelection.cs
- CompoundFileStorageReference.cs
- TagMapInfo.cs
- UIElementAutomationPeer.cs
- SqlNamer.cs
- _Semaphore.cs
- StrongNameKeyPair.cs
- SQLString.cs
- EntityReference.cs