Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. // // ==--== /*============================================================================== ** ** 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathNodeIterator.cs
- EndOfStreamException.cs
- WorkflowMessageEventHandler.cs
- DynamicDocumentPaginator.cs
- CompareInfo.cs
- ArglessEventHandlerProxy.cs
- FixedSOMLineRanges.cs
- AnimationException.cs
- AccessedThroughPropertyAttribute.cs
- SequenceFullException.cs
- TextOptions.cs
- BigIntegerStorage.cs
- MouseOverProperty.cs
- MarkupWriter.cs
- DataRelation.cs
- SoapAttributeAttribute.cs
- Viewport3DVisual.cs
- Point.cs
- RequestSecurityTokenResponse.cs
- Pkcs9Attribute.cs
- GeneralTransformCollection.cs
- FixedDocumentSequencePaginator.cs
- OleStrCAMarshaler.cs
- ServiceNotStartedException.cs
- EntityProviderServices.cs
- HtmlFormParameterWriter.cs
- InternalMappingException.cs
- CodeCompileUnit.cs
- PreviewKeyDownEventArgs.cs
- IListConverters.cs
- ListControlConvertEventArgs.cs
- ListViewContainer.cs
- CompressedStack.cs
- EqualityComparer.cs
- GraphicsContainer.cs
- ControlBuilder.cs
- ReadWriteSpinLock.cs
- NotFiniteNumberException.cs
- RegexCaptureCollection.cs
- SynchronizedDisposablePool.cs
- FuncTypeConverter.cs
- IsolatedStorageSecurityState.cs
- DataGridViewMethods.cs
- SchemaTypeEmitter.cs
- QuaternionAnimationBase.cs
- ComboBox.cs
- ItemContainerGenerator.cs
- InternalConfigSettingsFactory.cs
- DictionaryTraceRecord.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ContentWrapperAttribute.cs
- Solver.cs
- ValueSerializerAttribute.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- ImageAttributes.cs
- UIElement3D.cs
- EncoderParameters.cs
- WebPartActionVerb.cs
- TextModifier.cs
- DbExpressionBuilder.cs
- RemotingHelper.cs
- Mapping.cs
- XmlHelper.cs
- AppDomain.cs
- SecurityHelper.cs
- BuildProviderAppliesToAttribute.cs
- GACMembershipCondition.cs
- RecipientInfo.cs
- _ListenerAsyncResult.cs
- VScrollBar.cs
- ApplicationManager.cs
- ApplicationGesture.cs
- PropertyGridEditorPart.cs
- XmlNamedNodeMap.cs
- WindowAutomationPeer.cs
- designeractionbehavior.cs
- UITypeEditor.cs
- TreeBuilderXamlTranslator.cs
- DynamicPropertyHolder.cs
- PixelFormatConverter.cs
- TransformerInfoCollection.cs
- TerminateSequenceResponse.cs
- DataGridHyperlinkColumn.cs
- TrustManagerMoreInformation.cs
- Clause.cs
- EdmProviderManifest.cs
- BuildResultCache.cs
- followingquery.cs
- StrokeSerializer.cs
- ApplicationGesture.cs
- RawUIStateInputReport.cs
- ResourceCollectionInfo.cs
- NetNamedPipeSecurityMode.cs
- AbstractSvcMapFileLoader.cs
- AttachmentCollection.cs
- Int16.cs
- PropertyEntry.cs
- RotateTransform3D.cs
- ValidatingReaderNodeData.cs
- ArrangedElement.cs