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
- UpdateException.cs
- DesignerLinkAdapter.cs
- Page.cs
- EmptyEnumerator.cs
- NativeWrapper.cs
- BinaryHeap.cs
- InsufficientExecutionStackException.cs
- Int32CAMarshaler.cs
- SettingsPropertyCollection.cs
- CustomAssemblyResolver.cs
- SocketSettings.cs
- LineMetrics.cs
- CodeSubDirectoriesCollection.cs
- ContentType.cs
- MultiSelector.cs
- FileNotFoundException.cs
- TrustSection.cs
- KeyValueConfigurationElement.cs
- ToolZone.cs
- XmlSchemaSimpleTypeRestriction.cs
- MultiView.cs
- ProxyBuilder.cs
- Int32Animation.cs
- FontUnit.cs
- SolidColorBrush.cs
- SQLDecimal.cs
- TextSegment.cs
- recordstatefactory.cs
- CustomAttributeBuilder.cs
- AuthenticationConfig.cs
- WindowsSidIdentity.cs
- Expression.DebuggerProxy.cs
- MulticastIPAddressInformationCollection.cs
- EncryptedPackage.cs
- WindowsTab.cs
- CFStream.cs
- NodeInfo.cs
- SqlDuplicator.cs
- Signature.cs
- ListBoxItem.cs
- ConfigsHelper.cs
- BooleanFacetDescriptionElement.cs
- ConnectionsZone.cs
- InstanceNameConverter.cs
- ObjectViewEntityCollectionData.cs
- CustomAttributeSerializer.cs
- CaseInsensitiveHashCodeProvider.cs
- RtType.cs
- AvTraceDetails.cs
- DiscoveryOperationContextExtension.cs
- DataGridDetailsPresenter.cs
- BasicCellRelation.cs
- IndependentAnimationStorage.cs
- ReferencedCategoriesDocument.cs
- ToolZone.cs
- OrderPreservingSpoolingTask.cs
- BoolExpression.cs
- MessageFault.cs
- CodeSpit.cs
- SerialReceived.cs
- AutoGeneratedFieldProperties.cs
- XPathChildIterator.cs
- Point4D.cs
- sqlstateclientmanager.cs
- ApplicationTrust.cs
- ProvidePropertyAttribute.cs
- BinaryUtilClasses.cs
- IncrementalHitTester.cs
- VectorAnimationUsingKeyFrames.cs
- OpacityConverter.cs
- HttpPostLocalhostServerProtocol.cs
- ParagraphVisual.cs
- SafeReadContext.cs
- DecoderFallback.cs
- HTMLTextWriter.cs
- LazyInitializer.cs
- SpellerInterop.cs
- ProcessHostServerConfig.cs
- RemotingConfiguration.cs
- JsonReader.cs
- SatelliteContractVersionAttribute.cs
- VariableQuery.cs
- XPathSelectionIterator.cs
- TextInfo.cs
- SecurityUtils.cs
- SrgsDocument.cs
- ContainerSelectorGlyph.cs
- TimeoutValidationAttribute.cs
- MarkupCompilePass1.cs
- XmlProcessingInstruction.cs
- MtomMessageEncodingBindingElement.cs
- TemplateField.cs
- ObjectDataSourceStatusEventArgs.cs
- IRCollection.cs
- AutomationPeer.cs
- GridEntry.cs
- Transform3DCollection.cs
- RpcCryptoRequest.cs
- Transform.cs
- RequestCacheManager.cs