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
- ProfileInfo.cs
- LocalBuilder.cs
- BulletedList.cs
- JoinCqlBlock.cs
- ProjectionCamera.cs
- CorrelationInitializer.cs
- AnimationClock.cs
- XmlSchemaAnyAttribute.cs
- DataGridViewCellValueEventArgs.cs
- DoubleStorage.cs
- PriorityBinding.cs
- HandlerElement.cs
- DetailsViewRowCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- xmlfixedPageInfo.cs
- querybuilder.cs
- OperatorExpressions.cs
- DataRecordInternal.cs
- FontInfo.cs
- LinkLabel.cs
- TrackBarRenderer.cs
- DataControlLinkButton.cs
- Int16AnimationBase.cs
- MediaElementAutomationPeer.cs
- PropertyStore.cs
- XmlSchemaExternal.cs
- XPathCompileException.cs
- DefaultPropertyAttribute.cs
- BitmapEffectInputConnector.cs
- PolicyValidationException.cs
- NumericUpDownAcceleration.cs
- BasePropertyDescriptor.cs
- DataBindingCollection.cs
- DefaultProxySection.cs
- DataChangedEventManager.cs
- ConfigurationManagerInternal.cs
- initElementDictionary.cs
- HeaderCollection.cs
- TypeUtil.cs
- WebPartMinimizeVerb.cs
- FixedPage.cs
- TextBox.cs
- Queue.cs
- GAC.cs
- InkPresenter.cs
- DataGridViewRowCollection.cs
- MULTI_QI.cs
- Stylesheet.cs
- LogEntrySerializationException.cs
- WebPartUserCapability.cs
- ConfigUtil.cs
- ColumnBinding.cs
- Button.cs
- MSAAWinEventWrap.cs
- GroupBoxRenderer.cs
- CollectionCodeDomSerializer.cs
- Frame.cs
- wgx_sdk_version.cs
- ReadOnlyNameValueCollection.cs
- Decorator.cs
- QueryOutputWriter.cs
- HealthMonitoringSection.cs
- CodeSnippetExpression.cs
- TypeHelper.cs
- OdbcInfoMessageEvent.cs
- BrowserCapabilitiesFactory.cs
- UnhandledExceptionEventArgs.cs
- ValueExpressions.cs
- SemanticKeyElement.cs
- SystemUnicastIPAddressInformation.cs
- FileSystemWatcher.cs
- TileModeValidation.cs
- ProfilePropertyNameValidator.cs
- GifBitmapEncoder.cs
- InstanceDescriptor.cs
- AuthorizationRule.cs
- MemoryMappedViewAccessor.cs
- WebRequestModuleElement.cs
- EntityDataSourceValidationException.cs
- LocalizationComments.cs
- GlyphsSerializer.cs
- StylusCollection.cs
- TextViewBase.cs
- TypedDatasetGenerator.cs
- XDRSchema.cs
- SymmetricKey.cs
- LicenseContext.cs
- ScrollEvent.cs
- CompoundFileStorageReference.cs
- EventData.cs
- Propagator.ExtentPlaceholderCreator.cs
- StdValidatorsAndConverters.cs
- DesignerTextWriter.cs
- ValueUtilsSmi.cs
- SafeHandles.cs
- ComboBoxRenderer.cs
- InstanceStoreQueryResult.cs
- TextAdaptor.cs
- FontDriver.cs
- RedistVersionInfo.cs