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
- ApplicationSettingsBase.cs
- CursorEditor.cs
- EmptyReadOnlyDictionaryInternal.cs
- Rotation3DAnimation.cs
- CheckBoxAutomationPeer.cs
- DataBindingExpressionBuilder.cs
- DesignerDataTableBase.cs
- DoubleCollectionValueSerializer.cs
- BackgroundWorker.cs
- PageCodeDomTreeGenerator.cs
- DeviceContext2.cs
- StrongNameMembershipCondition.cs
- EventData.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- SQLSingle.cs
- IntersectQueryOperator.cs
- PointAnimationBase.cs
- SchemaEntity.cs
- FloaterParaClient.cs
- ConnectionPointCookie.cs
- mactripleDES.cs
- ExceptionRoutedEventArgs.cs
- TypeUtil.cs
- VisualStyleTypesAndProperties.cs
- HttpException.cs
- StringOutput.cs
- MatchAttribute.cs
- SmiTypedGetterSetter.cs
- PeerApplicationLaunchInfo.cs
- JournalEntry.cs
- DragEventArgs.cs
- Menu.cs
- StringComparer.cs
- DataServiceRequestException.cs
- TypeExtensions.cs
- Header.cs
- RenderDataDrawingContext.cs
- StringPropertyBuilder.cs
- ThreadStateException.cs
- KeySplineConverter.cs
- sqlstateclientmanager.cs
- PageFunction.cs
- RowsCopiedEventArgs.cs
- FormatVersion.cs
- ColumnCollectionEditor.cs
- WebPartConnectVerb.cs
- TreeIterator.cs
- DataGridViewCheckBoxCell.cs
- WebPartTransformerCollection.cs
- XmlSchemaInfo.cs
- ViewLoader.cs
- BinaryObjectReader.cs
- BindingListCollectionView.cs
- AdRotatorDesigner.cs
- StylusCaptureWithinProperty.cs
- DataGridHeaderBorder.cs
- IfAction.cs
- BuilderInfo.cs
- UIElementParagraph.cs
- WindowsSysHeader.cs
- StreamWriter.cs
- ThreadAbortException.cs
- IdnMapping.cs
- ellipse.cs
- ToolStripItemImageRenderEventArgs.cs
- ExpressionPrinter.cs
- HttpProtocolReflector.cs
- TableItemStyle.cs
- CursorConverter.cs
- SpecialNameAttribute.cs
- XmlDomTextWriter.cs
- WebPartConnectionsDisconnectVerb.cs
- TaiwanLunisolarCalendar.cs
- UIElement3DAutomationPeer.cs
- XmlSchemaSimpleType.cs
- SiteMapSection.cs
- CachedCompositeFamily.cs
- X509ChainElement.cs
- ImportedPolicyConversionContext.cs
- NameValuePermission.cs
- DateTimeValueSerializerContext.cs
- HttpBufferlessInputStream.cs
- ValidationException.cs
- VisualBrush.cs
- SafeArrayTypeMismatchException.cs
- OdbcErrorCollection.cs
- WorkItem.cs
- ProfilePropertySettingsCollection.cs
- Message.cs
- ImageFormat.cs
- IntegerValidator.cs
- TransformerTypeCollection.cs
- Contracts.cs
- TableAutomationPeer.cs
- HostingPreferredMapPath.cs
- StateDesigner.Layouts.cs
- HtmlTextBoxAdapter.cs
- HttpResponseInternalWrapper.cs
- ListViewItem.cs
- RequestStatusBarUpdateEventArgs.cs