Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / MissingMethodException.cs / 1305376 / MissingMethodException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: MissingMethodException ** ** ** 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 MissingMethodException : MissingMemberException, ISerializable { public MissingMethodException() : base(Environment.GetResourceString("Arg_MissingMethodException")) { SetErrorCode(__HResults.COR_E_MISSINGMETHOD); } public MissingMethodException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MISSINGMETHOD); } public MissingMethodException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MISSINGMETHOD); } [System.Security.SecuritySafeCritical] // auto-generated protected MissingMethodException(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("MissingMethod_Name", ClassName + "." + MemberName + (Signature != null ? " " + FormatSignature(Signature) : "")); } } } // Called from the EE private MissingMethodException(String className, String methodName, byte[] signature) { ClassName = className; MemberName = methodName; Signature = signature; } public MissingMethodException(String className, String methodName) { ClassName = className; MemberName = methodName; } // 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: MissingMethodException ** ** ** 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 MissingMethodException : MissingMemberException, ISerializable { public MissingMethodException() : base(Environment.GetResourceString("Arg_MissingMethodException")) { SetErrorCode(__HResults.COR_E_MISSINGMETHOD); } public MissingMethodException(String message) : base(message) { SetErrorCode(__HResults.COR_E_MISSINGMETHOD); } public MissingMethodException(String message, Exception inner) : base(message, inner) { SetErrorCode(__HResults.COR_E_MISSINGMETHOD); } [System.Security.SecuritySafeCritical] // auto-generated protected MissingMethodException(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("MissingMethod_Name", ClassName + "." + MemberName + (Signature != null ? " " + FormatSignature(Signature) : "")); } } } // Called from the EE private MissingMethodException(String className, String methodName, byte[] signature) { ClassName = className; MemberName = methodName; Signature = signature; } public MissingMethodException(String className, String methodName) { ClassName = className; MemberName = methodName; } // 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
- PropertyCollection.cs
- WebPartZoneCollection.cs
- SingleKeyFrameCollection.cs
- WebFormsRootDesigner.cs
- FontDriver.cs
- parserscommon.cs
- EntityDataSourceStatementEditorForm.cs
- Int32Rect.cs
- _ProxyChain.cs
- DeploymentSectionCache.cs
- SqlDeflator.cs
- DetailsViewUpdatedEventArgs.cs
- ValueUtilsSmi.cs
- PageWrapper.cs
- MessageSecurityOverHttp.cs
- AdornerPresentationContext.cs
- ModulesEntry.cs
- TextElementAutomationPeer.cs
- DataBinding.cs
- BindToObject.cs
- ServiceParser.cs
- DbgCompiler.cs
- OleDbConnection.cs
- ReflectEventDescriptor.cs
- HtmlLink.cs
- MessageQueueTransaction.cs
- CompilerCollection.cs
- SmtpNegotiateAuthenticationModule.cs
- CodeAccessSecurityEngine.cs
- ActivityDelegate.cs
- PartitionResolver.cs
- basecomparevalidator.cs
- entityreference_tresulttype.cs
- _HTTPDateParse.cs
- ContentHostHelper.cs
- AccessDataSourceDesigner.cs
- PageContentCollection.cs
- RegexWorker.cs
- ReaderOutput.cs
- PaperSource.cs
- BulletDecorator.cs
- WorkflowInstanceExtensionManager.cs
- VerificationException.cs
- DefinitionUpdate.cs
- WebPartUtil.cs
- BitmapCodecInfo.cs
- ToolStripDropDownButton.cs
- SQLStringStorage.cs
- DataReaderContainer.cs
- CommandBinding.cs
- WebPartExportVerb.cs
- ConfigurationLocationCollection.cs
- ConfigXmlText.cs
- _SecureChannel.cs
- RangeValuePattern.cs
- Util.cs
- ElementFactory.cs
- Msec.cs
- FormViewInsertEventArgs.cs
- VisualBrush.cs
- KernelTypeValidation.cs
- MetadataPropertyAttribute.cs
- SmuggledIUnknown.cs
- PerformanceCountersElement.cs
- PageThemeBuildProvider.cs
- CollectionsUtil.cs
- TrackingExtract.cs
- CatalogPartChrome.cs
- ProfilePropertyMetadata.cs
- PrefixQName.cs
- ControlCachePolicy.cs
- NativeRightsManagementAPIsStructures.cs
- DSASignatureDeformatter.cs
- CacheVirtualItemsEvent.cs
- ModifiableIteratorCollection.cs
- ToolStripContainer.cs
- DocumentGrid.cs
- StaticFileHandler.cs
- XPathExpr.cs
- DockPanel.cs
- Style.cs
- RadioButtonPopupAdapter.cs
- InfiniteIntConverter.cs
- SqlNamer.cs
- ControlCachePolicy.cs
- EastAsianLunisolarCalendar.cs
- QueryCacheKey.cs
- EtwTrackingParticipant.cs
- JsonReaderWriterFactory.cs
- DynamicAttribute.cs
- ToolboxItemAttribute.cs
- CompositeFontParser.cs
- SkewTransform.cs
- TraceSwitch.cs
- RequestTimeoutManager.cs
- CorrelationManager.cs
- InputScope.cs
- PointAnimationUsingKeyFrames.cs
- PersonalizableAttribute.cs
- UnSafeCharBuffer.cs