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
- NullRuntimeConfig.cs
- GridPatternIdentifiers.cs
- ReliabilityContractAttribute.cs
- Speller.cs
- DataError.cs
- ObjRef.cs
- CorrelationTokenInvalidatedHandler.cs
- InsufficientExecutionStackException.cs
- Pair.cs
- ComponentDispatcher.cs
- MemberListBinding.cs
- HttpInputStream.cs
- RewritingProcessor.cs
- PersonalizableTypeEntry.cs
- SettingsAttributeDictionary.cs
- TypeListConverter.cs
- CodeRegionDirective.cs
- LinqMaximalSubtreeNominator.cs
- GacUtil.cs
- StrongNameSignatureInformation.cs
- BitmapEffectCollection.cs
- ComEventsHelper.cs
- CheckBoxBaseAdapter.cs
- CacheDict.cs
- PreservationFileWriter.cs
- Int32Collection.cs
- BaseCAMarshaler.cs
- WebPartConnectionsCancelEventArgs.cs
- RowToParametersTransformer.cs
- GenerateScriptTypeAttribute.cs
- IODescriptionAttribute.cs
- Menu.cs
- TypefaceMetricsCache.cs
- BackEase.cs
- DbException.cs
- Boolean.cs
- SchemaContext.cs
- TextSearch.cs
- NonClientArea.cs
- ContentFileHelper.cs
- SectionXmlInfo.cs
- WsdlHelpGeneratorElement.cs
- InvalidFilterCriteriaException.cs
- ResumeStoryboard.cs
- CallbackHandler.cs
- TreeNode.cs
- StorageMappingItemCollection.cs
- Query.cs
- SineEase.cs
- ObjectDataSourceFilteringEventArgs.cs
- XmlWrappingReader.cs
- BamlResourceSerializer.cs
- ToolStripStatusLabel.cs
- UnsafeNativeMethods.cs
- DataObjectMethodAttribute.cs
- ProgressBar.cs
- InvalidWMPVersionException.cs
- LogicalTreeHelper.cs
- VariantWrapper.cs
- ByValueEqualityComparer.cs
- COAUTHIDENTITY.cs
- X509ChainElement.cs
- SynchronizationFilter.cs
- SignedPkcs7.cs
- WorkflowServiceHostFactory.cs
- DefaultBindingPropertyAttribute.cs
- CodeArrayCreateExpression.cs
- Sql8ExpressionRewriter.cs
- ErrorView.xaml.cs
- RtfControlWordInfo.cs
- TimerElapsedEvenArgs.cs
- EncryptedKey.cs
- RadialGradientBrush.cs
- RadioButtonFlatAdapter.cs
- Baml2006SchemaContext.cs
- MenuDesigner.cs
- UdpDiscoveryEndpointElement.cs
- DataGridViewComponentPropertyGridSite.cs
- DataGridColumnCollection.cs
- XmlBaseWriter.cs
- PartitionedStreamMerger.cs
- ArcSegment.cs
- SettingsBindableAttribute.cs
- SmiRequestExecutor.cs
- DetailsViewUpdateEventArgs.cs
- WindowsListViewItem.cs
- TextTrailingCharacterEllipsis.cs
- ToolStripItemRenderEventArgs.cs
- FontFaceLayoutInfo.cs
- infer.cs
- PrintEvent.cs
- AutomationPropertyInfo.cs
- XmlAttributeAttribute.cs
- CalendarDateRange.cs
- Table.cs
- TdsParameterSetter.cs
- CommentEmitter.cs
- Win32KeyboardDevice.cs
- HtmlAnchor.cs
- DynamicPropertyHolder.cs