Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TableParaClient.cs
- Utils.cs
- TemplatePropertyEntry.cs
- StylusPointPropertyInfo.cs
- ClassData.cs
- FacetDescriptionElement.cs
- ActivitiesCollection.cs
- TextPatternIdentifiers.cs
- NamespaceImport.cs
- SecurityCriticalDataForSet.cs
- XmlAttributeOverrides.cs
- XmlSchemaDatatype.cs
- TemplatePagerField.cs
- Compiler.cs
- ScrollEvent.cs
- FlowLayoutPanelDesigner.cs
- GcSettings.cs
- WebAdminConfigurationHelper.cs
- DecimalAnimationBase.cs
- IndependentAnimationStorage.cs
- XmlSchemaSimpleType.cs
- TextContainer.cs
- SequenceDesignerAccessibleObject.cs
- IdentityVerifier.cs
- DesignerActionUIService.cs
- CodeGenHelper.cs
- DataBinder.cs
- SelectionHighlightInfo.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- PanelStyle.cs
- PathFigureCollection.cs
- TempFiles.cs
- ClientRuntimeConfig.cs
- HMACSHA256.cs
- WorkflowItemPresenter.cs
- ServiceNotStartedException.cs
- ListViewItem.cs
- RectAnimationClockResource.cs
- ClientUtils.cs
- MatrixValueSerializer.cs
- PointCollectionConverter.cs
- SiteMapDataSource.cs
- WhitespaceRuleLookup.cs
- ClaimTypes.cs
- XmlILConstructAnalyzer.cs
- TextElementCollection.cs
- MiniConstructorInfo.cs
- EntityDataSourceContextCreatedEventArgs.cs
- GradientBrush.cs
- ServicesUtilities.cs
- DependencyObjectType.cs
- ConversionContext.cs
- XmlNamespaceMapping.cs
- AndCondition.cs
- KeyPullup.cs
- FontNamesConverter.cs
- FileRecordSequence.cs
- NetworkAddressChange.cs
- SignatureToken.cs
- ConfigurationFileMap.cs
- SizeAnimationClockResource.cs
- COSERVERINFO.cs
- OleDbDataAdapter.cs
- Nodes.cs
- PostBackTrigger.cs
- ConsoleTraceListener.cs
- BooleanFacetDescriptionElement.cs
- BuildProviderAppliesToAttribute.cs
- FileReader.cs
- DataGridView.cs
- HierarchicalDataBoundControl.cs
- HitTestResult.cs
- TextProperties.cs
- SelfIssuedAuthAsymmetricKey.cs
- CommandEventArgs.cs
- SuppressMergeCheckAttribute.cs
- GridView.cs
- Statements.cs
- ComAdminWrapper.cs
- XmlSchemaInfo.cs
- StringKeyFrameCollection.cs
- SetStateEventArgs.cs
- StreamUpgradeBindingElement.cs
- CngUIPolicy.cs
- BoundPropertyEntry.cs
- SqlMetaData.cs
- ChannelProtectionRequirements.cs
- AttributeProviderAttribute.cs
- CLRBindingWorker.cs
- RegexTypeEditor.cs
- SmtpFailedRecipientsException.cs
- XmlNodeList.cs
- DataTableTypeConverter.cs
- BitmapEffectOutputConnector.cs
- PreProcessInputEventArgs.cs
- LocalFileSettingsProvider.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- EntityViewGenerator.cs
- XmlAttributeProperties.cs
- LocalizableAttribute.cs