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
- KeyNotFoundException.cs
- JsonClassDataContract.cs
- WriteableBitmap.cs
- PolyLineSegmentFigureLogic.cs
- SmiGettersStream.cs
- StrokeDescriptor.cs
- Size3D.cs
- SymbolEqualComparer.cs
- ListViewPagedDataSource.cs
- UnsafeNativeMethods.cs
- UnknownBitmapDecoder.cs
- ExceptionHandler.cs
- XmlQueryTypeFactory.cs
- GridView.cs
- PrimaryKeyTypeConverter.cs
- ArrayConverter.cs
- InternalCache.cs
- SecurityAlgorithmSuiteConverter.cs
- Peer.cs
- SupportingTokenProviderSpecification.cs
- WindowsIdentity.cs
- TextContainer.cs
- DurationConverter.cs
- PeerContact.cs
- RootBrowserWindowAutomationPeer.cs
- SplitterEvent.cs
- MethodInfo.cs
- WorkflowRuntimeServiceElement.cs
- System.Data_BID.cs
- EntityViewContainer.cs
- ResizeGrip.cs
- JapaneseLunisolarCalendar.cs
- Codec.cs
- ErrorWrapper.cs
- DeflateEmulationStream.cs
- srgsitem.cs
- FixUp.cs
- HttpModulesSection.cs
- cookie.cs
- GB18030Encoding.cs
- ParallelSeparator.xaml.cs
- LogicalExpressionEditor.cs
- CodeConstructor.cs
- _ListenerResponseStream.cs
- VisualStateGroup.cs
- LambdaCompiler.Binary.cs
- HttpVersion.cs
- SafeFileMappingHandle.cs
- HtmlControlPersistable.cs
- TextStore.cs
- ExpandSegmentCollection.cs
- EntryPointNotFoundException.cs
- WebPartConnectVerb.cs
- TypeElement.cs
- UntrustedRecipientException.cs
- DesignerProperties.cs
- FileIOPermission.cs
- RawKeyboardInputReport.cs
- IisTraceWebEventProvider.cs
- QilUnary.cs
- FormatConvertedBitmap.cs
- CustomErrorCollection.cs
- RefExpr.cs
- RestHandler.cs
- HtmlEncodedRawTextWriter.cs
- KerberosSecurityTokenProvider.cs
- LinkTarget.cs
- _AutoWebProxyScriptEngine.cs
- DataProtectionSecurityStateEncoder.cs
- TogglePattern.cs
- BitmapVisualManager.cs
- FormsAuthenticationCredentials.cs
- ToolstripProfessionalRenderer.cs
- sitestring.cs
- HttpConfigurationContext.cs
- SubMenuStyleCollection.cs
- DataGridRow.cs
- DiscriminatorMap.cs
- EdmScalarPropertyAttribute.cs
- IProvider.cs
- Vector3DCollection.cs
- ValueTypeIndexerReference.cs
- TerminatorSinks.cs
- ViewRendering.cs
- CharStorage.cs
- Compiler.cs
- InputProcessorProfilesLoader.cs
- RTTypeWrapper.cs
- EmptyReadOnlyDictionaryInternal.cs
- BooleanStorage.cs
- DBNull.cs
- SemanticAnalyzer.cs
- EditorZoneBase.cs
- HotSpotCollection.cs
- ProgressBar.cs
- GeometryValueSerializer.cs
- RectAnimationBase.cs
- CannotUnloadAppDomainException.cs
- DataAdapter.cs
- TitleStyle.cs