Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / MissingMethodException.cs / 1 / 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);
}
protected MissingMethodException(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("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.
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NetworkInformationException.cs
- WinEventTracker.cs
- CookieParameter.cs
- PolyLineSegment.cs
- MissingFieldException.cs
- ActionFrame.cs
- ProtocolsConfigurationHandler.cs
- TableLayoutCellPaintEventArgs.cs
- SqlUnionizer.cs
- ConstraintEnumerator.cs
- remotingproxy.cs
- _SSPIWrapper.cs
- ThreadStartException.cs
- CatalogZoneBase.cs
- DataGridItemEventArgs.cs
- XsltArgumentList.cs
- GregorianCalendar.cs
- TaskFileService.cs
- EDesignUtil.cs
- ComponentEvent.cs
- MetadataArtifactLoader.cs
- WriteFileContext.cs
- AuthorizationSection.cs
- PlaceHolder.cs
- GiveFeedbackEvent.cs
- DrawingImage.cs
- ZipIOBlockManager.cs
- Utils.cs
- AppDomainShutdownMonitor.cs
- SrgsDocument.cs
- GridViewDeletedEventArgs.cs
- FixUpCollection.cs
- LineGeometry.cs
- PointAnimationClockResource.cs
- BoolLiteral.cs
- InternalException.cs
- CompiledELinqQueryState.cs
- CFGGrammar.cs
- sqlcontext.cs
- ProtectedProviderSettings.cs
- Publisher.cs
- MimeTypeMapper.cs
- ClickablePoint.cs
- QueryStringParameter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CompositionAdorner.cs
- DataGridViewCellStyle.cs
- ConnectionManagementElement.cs
- ManagementBaseObject.cs
- ConfigXmlCDataSection.cs
- HyperLinkStyle.cs
- ConfigXmlCDataSection.cs
- Attributes.cs
- OleDbParameterCollection.cs
- ParseNumbers.cs
- EditorPartChrome.cs
- SafeThreadHandle.cs
- AlgoModule.cs
- XamlDesignerSerializationManager.cs
- MergeFailedEvent.cs
- XmlQualifiedName.cs
- HttpModulesSection.cs
- GridViewColumn.cs
- EventProviderTraceListener.cs
- Soap.cs
- Comparer.cs
- BinaryReader.cs
- ByteArrayHelperWithString.cs
- KeySpline.cs
- sqlnorm.cs
- XmlSchemaAnnotation.cs
- PictureBox.cs
- WindowShowOrOpenTracker.cs
- CapabilitiesRule.cs
- PolicyException.cs
- SafeSecurityHelper.cs
- DbInsertCommandTree.cs
- AccessorTable.cs
- SharedMemory.cs
- ImageKeyConverter.cs
- documentsequencetextpointer.cs
- StylusPointPropertyUnit.cs
- EmulateRecognizeCompletedEventArgs.cs
- ModuleElement.cs
- PolicyUtility.cs
- InternalConfigEventArgs.cs
- ExpressionReplacer.cs
- TriState.cs
- TypeViewSchema.cs
- CancelEventArgs.cs
- ValidatorCollection.cs
- DefaultTextStoreTextComposition.cs
- ContractListAdapter.cs
- SapiRecoContext.cs
- ObjectItemNoOpAssemblyLoader.cs
- UInt64Storage.cs
- SqlProviderManifest.cs
- IERequestCache.cs
- ExpressionCopier.cs
- CultureTable.cs