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
- SiteMembershipCondition.cs
- TabletDevice.cs
- SystemColorTracker.cs
- FamilyCollection.cs
- XamlGridLengthSerializer.cs
- UnsafeNetInfoNativeMethods.cs
- Guid.cs
- WebContext.cs
- ImageList.cs
- DictionaryContent.cs
- SqlReferenceCollection.cs
- InputReportEventArgs.cs
- BridgeDataRecord.cs
- PackWebResponse.cs
- ClientSponsor.cs
- FlowLayoutPanel.cs
- XhtmlStyleClass.cs
- HtmlEncodedRawTextWriter.cs
- BamlTreeMap.cs
- Util.cs
- TextReturnReader.cs
- MarkupProperty.cs
- Attribute.cs
- ConditionalAttribute.cs
- TypeUnloadedException.cs
- ToolBarButtonDesigner.cs
- UpdatePanelTriggerCollection.cs
- FileClassifier.cs
- OleDbConnection.cs
- StylusPointProperty.cs
- ExceptionUtil.cs
- ObjectManager.cs
- FileAuthorizationModule.cs
- QueryOperator.cs
- ShapingWorkspace.cs
- ExcludeFromCodeCoverageAttribute.cs
- ProcessInfo.cs
- XPathExpr.cs
- EntityDataSourceViewSchema.cs
- ExceptionRoutedEventArgs.cs
- TableColumn.cs
- ConstraintConverter.cs
- SetterBaseCollection.cs
- EntityDataSource.cs
- UncommonField.cs
- RbTree.cs
- DocumentCollection.cs
- ValidationEventArgs.cs
- ListViewTableCell.cs
- LinearKeyFrames.cs
- WebPartTransformerCollection.cs
- InlineCollection.cs
- HandlerFactoryCache.cs
- ImageKeyConverter.cs
- QueryReaderSettings.cs
- RegexRunner.cs
- DatagridviewDisplayedBandsData.cs
- ScriptingSectionGroup.cs
- SamlSecurityToken.cs
- ProviderSettings.cs
- HttpModuleAction.cs
- OpenFileDialog.cs
- ViewStateModeByIdAttribute.cs
- DbReferenceCollection.cs
- RTLAwareMessageBox.cs
- TypeConverterValueSerializer.cs
- ToolStripRendererSwitcher.cs
- ConvertEvent.cs
- WebMessageEncodingBindingElement.cs
- PropertyBuilder.cs
- SystemGatewayIPAddressInformation.cs
- GroupBox.cs
- AVElementHelper.cs
- webproxy.cs
- LateBoundBitmapDecoder.cs
- TimeZone.cs
- TimersDescriptionAttribute.cs
- DataConnectionHelper.cs
- ByteStorage.cs
- CapabilitiesAssignment.cs
- ShaperBuffers.cs
- SQLBytes.cs
- WpfKnownType.cs
- ViewSimplifier.cs
- TdsRecordBufferSetter.cs
- RelationshipSet.cs
- CollectionType.cs
- ToolStripDropDownClosingEventArgs.cs
- TypefaceMetricsCache.cs
- isolationinterop.cs
- TraceSource.cs
- XmlSchemaAttributeGroup.cs
- webbrowsersite.cs
- DbDeleteCommandTree.cs
- MarkupExtensionParser.cs
- Profiler.cs
- StorageBasedPackageProperties.cs
- UnsafeNativeMethods.cs
- Ipv6Element.cs
- DBNull.cs