Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Reflection / AmbiguousMatchException.cs / 1 / AmbiguousMatchException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
// AmbiguousMatchException is thrown when binding to a method results in more
// than one method matching the binding criteria. This exception is thrown in
// general when something is Ambiguous.
//
//
//
//
namespace System.Reflection {
using System;
using SystemException = System.SystemException;
using System.Runtime.Serialization;
[Serializable()]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class AmbiguousMatchException : SystemException
{
public AmbiguousMatchException()
: base(Environment.GetResourceString("Arg_AmbiguousMatchException")) {
SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
}
public AmbiguousMatchException(String message) : base(message) {
SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
}
public AmbiguousMatchException(String message, Exception inner) : base(message, inner) {
SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
}
internal AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context) {
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
// AmbiguousMatchException is thrown when binding to a method results in more
// than one method matching the binding criteria. This exception is thrown in
// general when something is Ambiguous.
//
//
//
//
namespace System.Reflection {
using System;
using SystemException = System.SystemException;
using System.Runtime.Serialization;
[Serializable()]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class AmbiguousMatchException : SystemException
{
public AmbiguousMatchException()
: base(Environment.GetResourceString("Arg_AmbiguousMatchException")) {
SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
}
public AmbiguousMatchException(String message) : base(message) {
SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
}
public AmbiguousMatchException(String message, Exception inner) : base(message, inner) {
SetErrorCode(__HResults.COR_E_AMBIGUOUSMATCH);
}
internal AmbiguousMatchException(SerializationInfo info, StreamingContext context) : base(info, context) {
}
}
}
// 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
- MemoryMappedFile.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- IPAddress.cs
- ProfilePropertySettingsCollection.cs
- Hashtable.cs
- DataControlLinkButton.cs
- safesecurityhelperavalon.cs
- AppDomainEvidenceFactory.cs
- nulltextnavigator.cs
- DuplicateContext.cs
- UIElementHelper.cs
- Soap.cs
- DataSetMappper.cs
- AutomationPeer.cs
- SimpleApplicationHost.cs
- CustomDictionarySources.cs
- Size.cs
- Model3DGroup.cs
- XmlNodeChangedEventManager.cs
- StrokeDescriptor.cs
- DirectoryObjectSecurity.cs
- assemblycache.cs
- XmlSerializerVersionAttribute.cs
- ViewRendering.cs
- TransformGroup.cs
- HttpPostProtocolImporter.cs
- InputReportEventArgs.cs
- MessageTraceRecord.cs
- Soap.cs
- ResourceDescriptionAttribute.cs
- MetadataCache.cs
- XmlNamespaceDeclarationsAttribute.cs
- Brush.cs
- WindowAutomationPeer.cs
- _PooledStream.cs
- ButtonBase.cs
- TypeInitializationException.cs
- DESCryptoServiceProvider.cs
- ConfigurationSchemaErrors.cs
- NetworkInformationPermission.cs
- EntryWrittenEventArgs.cs
- Content.cs
- UidManager.cs
- WrapPanel.cs
- XmlEncodedRawTextWriter.cs
- MouseOverProperty.cs
- TreeNodeMouseHoverEvent.cs
- Calendar.cs
- Decoder.cs
- RotateTransform.cs
- InvalidOleVariantTypeException.cs
- Utils.cs
- Grammar.cs
- DataTemplateKey.cs
- WriteableBitmap.cs
- CheckBoxStandardAdapter.cs
- BitmapEffectDrawingContextState.cs
- WindowsListBox.cs
- SqlInternalConnectionTds.cs
- SoapHeaderAttribute.cs
- MasterPageBuildProvider.cs
- InplaceBitmapMetadataWriter.cs
- LineMetrics.cs
- DeferredSelectedIndexReference.cs
- TreeViewEvent.cs
- MenuItemStyle.cs
- Facet.cs
- CodeSubDirectory.cs
- RowToFieldTransformer.cs
- TdsParserSessionPool.cs
- COM2IDispatchConverter.cs
- ClientTargetSection.cs
- DbReferenceCollection.cs
- PointConverter.cs
- Point3DCollectionValueSerializer.cs
- KnownColorTable.cs
- Rfc2898DeriveBytes.cs
- AsymmetricSignatureFormatter.cs
- XmlAtomicValue.cs
- TrustLevelCollection.cs
- UrlMapping.cs
- TextRunCache.cs
- FormViewInsertedEventArgs.cs
- NamespaceListProperty.cs
- RijndaelCryptoServiceProvider.cs
- UrlUtility.cs
- IIS7UserPrincipal.cs
- TimestampInformation.cs
- Char.cs
- HierarchicalDataSourceDesigner.cs
- ResponseBodyWriter.cs
- XmlEnumAttribute.cs
- ListBoxItemAutomationPeer.cs
- HtmlInputSubmit.cs
- XmlSchemaParticle.cs
- GeneralTransform3DCollection.cs
- TriggerActionCollection.cs
- SqlMethodAttribute.cs
- ScriptRegistrationManager.cs
- EventRoute.cs