Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ProxyHwnd.cs
- MenuItemBindingCollection.cs
- Primitive.cs
- Module.cs
- Sql8ExpressionRewriter.cs
- TextViewBase.cs
- CommentEmitter.cs
- SeekStoryboard.cs
- AdCreatedEventArgs.cs
- HMACRIPEMD160.cs
- MailMessage.cs
- VariableQuery.cs
- Message.cs
- Gdiplus.cs
- ProjectedSlot.cs
- XmlDataSource.cs
- BeginStoryboard.cs
- RuntimeVariableList.cs
- SignatureHelper.cs
- HttpChannelListener.cs
- TransformProviderWrapper.cs
- Attributes.cs
- Assert.cs
- WorkflowDurableInstance.cs
- TextCharacters.cs
- SkinBuilder.cs
- Expander.cs
- WorkflowPersistenceService.cs
- XPathEmptyIterator.cs
- ExternalDataExchangeClient.cs
- BrowserCapabilitiesFactory.cs
- LambdaCompiler.ControlFlow.cs
- DataGridViewLinkColumn.cs
- BlurEffect.cs
- SelectionEditingBehavior.cs
- ResourceKey.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- SimplePropertyEntry.cs
- XmlWrappingWriter.cs
- WpfKnownMember.cs
- Int32CollectionConverter.cs
- Validator.cs
- PersonalizationProviderHelper.cs
- AttributeUsageAttribute.cs
- WebPartChrome.cs
- GlobalizationSection.cs
- WebControl.cs
- LineSegment.cs
- ResourcePermissionBase.cs
- QueryResults.cs
- EdmConstants.cs
- NotificationContext.cs
- DataGridCommandEventArgs.cs
- BindingOperations.cs
- WebPartCatalogCloseVerb.cs
- ProgramPublisher.cs
- PaintValueEventArgs.cs
- HttpWebRequest.cs
- InstanceDescriptor.cs
- TransportSecurityBindingElement.cs
- Viewport2DVisual3D.cs
- Helper.cs
- Icon.cs
- ToolStripItemGlyph.cs
- PtsHelper.cs
- Enlistment.cs
- NamedPermissionSet.cs
- ServicePoint.cs
- Assert.cs
- CallSite.cs
- TextServicesCompartmentEventSink.cs
- XmlDictionary.cs
- StringArrayConverter.cs
- InputMethodStateTypeInfo.cs
- UnsafeNativeMethodsMilCoreApi.cs
- Int32RectValueSerializer.cs
- VariableQuery.cs
- CheckBoxStandardAdapter.cs
- wgx_exports.cs
- ActivityCodeDomSerializer.cs
- XmlObjectSerializerReadContextComplex.cs
- DiagnosticSection.cs
- CurrentChangingEventManager.cs
- DragDrop.cs
- EncoderNLS.cs
- DataServiceEntityAttribute.cs
- Update.cs
- WindowsGraphics2.cs
- Peer.cs
- ConstraintStruct.cs
- DataGridViewAdvancedBorderStyle.cs
- EntityViewContainer.cs
- Misc.cs
- WindowsFormsDesignerOptionService.cs
- ProvideValueServiceProvider.cs
- CreateParams.cs
- Matrix.cs
- InlineCollection.cs
- ComPlusServiceHost.cs
- MailAddressCollection.cs