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
- Compiler.cs
- ToolStripContainer.cs
- XmlEncoding.cs
- TextInfo.cs
- LicenseContext.cs
- ListBoxItemWrapperAutomationPeer.cs
- Parallel.cs
- IListConverters.cs
- DependencyPropertyDescriptor.cs
- AnyAllSearchOperator.cs
- BasePattern.cs
- PropertyOrder.cs
- CacheSection.cs
- UriTemplateDispatchFormatter.cs
- WindowsToolbar.cs
- NavigationCommands.cs
- DateTimeSerializationSection.cs
- SafeCancelMibChangeNotify.cs
- FileCodeGroup.cs
- Constants.cs
- TemplateBindingExpression.cs
- DataGridCommandEventArgs.cs
- HwndStylusInputProvider.cs
- ExtensibleClassFactory.cs
- BamlTreeUpdater.cs
- File.cs
- PathSegmentCollection.cs
- DesignerCategoryAttribute.cs
- RSAOAEPKeyExchangeDeformatter.cs
- srgsitem.cs
- EditableLabelControl.cs
- MILUtilities.cs
- DataGridViewTopRowAccessibleObject.cs
- Transform.cs
- HashCodeCombiner.cs
- FunctionDescription.cs
- DataPagerCommandEventArgs.cs
- ChildrenQuery.cs
- RuntimeArgument.cs
- DependencyPropertyDescriptor.cs
- InkCanvasInnerCanvas.cs
- PeerNameRecord.cs
- PropertyFilter.cs
- X509ThumbprintKeyIdentifierClause.cs
- DesignTimeVisibleAttribute.cs
- ProtocolsSection.cs
- safelink.cs
- XhtmlTextWriter.cs
- UriTemplateClientFormatter.cs
- WebPartRestoreVerb.cs
- ProbeRequestResponseAsyncResult.cs
- PageThemeBuildProvider.cs
- SessionState.cs
- TextFragmentEngine.cs
- StreamWriter.cs
- VirtualDirectoryMappingCollection.cs
- DbConnectionFactory.cs
- ClientConfigPaths.cs
- KnowledgeBase.cs
- FontUnit.cs
- TableProviderWrapper.cs
- BlockExpression.cs
- InvalidAsynchronousStateException.cs
- DynamicDataResources.Designer.cs
- ReferentialConstraintRoleElement.cs
- Expression.cs
- BitArray.cs
- CellIdBoolean.cs
- CheckBoxList.cs
- WasAdminWrapper.cs
- XmlFormatReaderGenerator.cs
- BindUriHelper.cs
- Odbc32.cs
- TreeNodeConverter.cs
- SecurityTokenInclusionMode.cs
- InstancePersistenceCommand.cs
- IDReferencePropertyAttribute.cs
- ManagementEventArgs.cs
- XhtmlBasicCommandAdapter.cs
- ScriptingAuthenticationServiceSection.cs
- BlurEffect.cs
- HyperLink.cs
- BindableAttribute.cs
- DocumentScope.cs
- NavigationHelper.cs
- BinaryFormatterWriter.cs
- ContentType.cs
- SingleAnimationBase.cs
- AnimatedTypeHelpers.cs
- InputManager.cs
- Maps.cs
- FormsAuthenticationTicket.cs
- TypeBuilder.cs
- TextBox.cs
- TakeQueryOptionExpression.cs
- RtfToken.cs
- BinaryObjectWriter.cs
- EffectiveValueEntry.cs
- TypeConverterHelper.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs