Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / MissingFieldException.cs / 1305376 / 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); } [System.Security.SecuritySafeCritical] // auto-generated protected MissingFieldException(SerializationInfo info, StreamingContext context) : base(info, context) { } public override String Message { [System.Security.SecuritySafeCritical] // auto-generated get { if (ClassName == null) { return base.Message; } else { // do any desired fixups to classname here. return 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); } [System.Security.SecuritySafeCritical] // auto-generated protected MissingFieldException(SerializationInfo info, StreamingContext context) : base(info, context) { } public override String Message { [System.Security.SecuritySafeCritical] // auto-generated get { if (ClassName == null) { return base.Message; } else { // do any desired fixups to classname here. return 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
- MenuItem.cs
- DataContractJsonSerializerOperationFormatter.cs
- XmlValueConverter.cs
- UserMapPath.cs
- OracleParameterCollection.cs
- MediaElement.cs
- QuotedPrintableStream.cs
- InputReportEventArgs.cs
- EdgeProfileValidation.cs
- XmlSchemaGroupRef.cs
- RSAPKCS1SignatureFormatter.cs
- AbstractDataSvcMapFileLoader.cs
- XsltQilFactory.cs
- StreamInfo.cs
- HostedImpersonationContext.cs
- OleDbPermission.cs
- ModulesEntry.cs
- RandomDelaySendsAsyncResult.cs
- C14NUtil.cs
- SafeFileMappingHandle.cs
- SafeIUnknown.cs
- SqlClientWrapperSmiStreamChars.cs
- DataRecordInternal.cs
- DockingAttribute.cs
- ExceptionHelpers.cs
- PtsHost.cs
- QilXmlReader.cs
- COM2IDispatchConverter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- UIElementIsland.cs
- ScrollPattern.cs
- XmlHierarchyData.cs
- TimelineGroup.cs
- Queue.cs
- EdmPropertyAttribute.cs
- QueryMatcher.cs
- TransformerInfo.cs
- ClockController.cs
- Token.cs
- AssemblyCacheEntry.cs
- InitializingNewItemEventArgs.cs
- WhitespaceRuleReader.cs
- DuplexSecurityProtocolFactory.cs
- PrimitiveCodeDomSerializer.cs
- Types.cs
- ElementProxy.cs
- FormViewInsertEventArgs.cs
- RemoteWebConfigurationHostStream.cs
- MethodAccessException.cs
- UncommonField.cs
- XhtmlConformanceSection.cs
- MenuItemStyle.cs
- PageAdapter.cs
- ObfuscateAssemblyAttribute.cs
- KeyGestureValueSerializer.cs
- PackagePartCollection.cs
- FlowDocumentReaderAutomationPeer.cs
- SoapCodeExporter.cs
- TriggerAction.cs
- Geometry.cs
- RawStylusSystemGestureInputReport.cs
- XmlDataSourceNodeDescriptor.cs
- TypeValidationEventArgs.cs
- LinqDataSourceView.cs
- _HeaderInfo.cs
- TemplateBamlTreeBuilder.cs
- SiteMapDataSourceDesigner.cs
- TextSpan.cs
- ZoneLinkButton.cs
- MessageContractImporter.cs
- MultilineStringConverter.cs
- DataIdProcessor.cs
- Grid.cs
- BinaryFormatterWriter.cs
- DesignerOptionService.cs
- RIPEMD160.cs
- WindowsListBox.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- XmlNavigatorFilter.cs
- NumberFunctions.cs
- SqlProfileProvider.cs
- PipelineModuleStepContainer.cs
- DBParameter.cs
- ScriptRegistrationManager.cs
- VScrollBar.cs
- SafeFindHandle.cs
- DirectoryInfo.cs
- BitmapVisualManager.cs
- DataGridState.cs
- ServiceNameElement.cs
- HtmlFormAdapter.cs
- NamedPipeConnectionPoolSettings.cs
- ContentFileHelper.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- NonVisualControlAttribute.cs
- HighContrastHelper.cs
- DockPattern.cs
- DataQuery.cs
- BitmapCache.cs
- ServiceConfigurationTraceRecord.cs