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
- DashStyle.cs
- ProviderConnectionPointCollection.cs
- CollectionType.cs
- ListView.cs
- DataGridParentRows.cs
- GacUtil.cs
- AssemblyBuilder.cs
- ApplicationServiceHelper.cs
- WmlLinkAdapter.cs
- Helper.cs
- ImageClickEventArgs.cs
- PersianCalendar.cs
- PanelStyle.cs
- PageAdapter.cs
- HatchBrush.cs
- ButtonPopupAdapter.cs
- InvokeProviderWrapper.cs
- AsynchronousChannel.cs
- PageBuildProvider.cs
- GeometryGroup.cs
- SHA512Managed.cs
- Size3D.cs
- AcceleratedTokenAuthenticator.cs
- TextEffectResolver.cs
- connectionpool.cs
- ExtendedPropertyDescriptor.cs
- WebRequest.cs
- ContextMarshalException.cs
- CompilationRelaxations.cs
- ListView.cs
- EmptyStringExpandableObjectConverter.cs
- PersonalizationEntry.cs
- UsernameTokenFactoryCredential.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- DockingAttribute.cs
- FormClosedEvent.cs
- FileDialog_Vista_Interop.cs
- EntityContainerEntitySet.cs
- StagingAreaInputItem.cs
- FileDialog.cs
- ObjectCacheSettings.cs
- TextProperties.cs
- BridgeDataRecord.cs
- RoutedUICommand.cs
- TextCompositionEventArgs.cs
- MimeParameterWriter.cs
- WindowsImpersonationContext.cs
- DocumentViewerBase.cs
- EFColumnProvider.cs
- ResXBuildProvider.cs
- KnownBoxes.cs
- CodeTypeMember.cs
- Root.cs
- ZipIOLocalFileDataDescriptor.cs
- AvTraceFormat.cs
- ImageDrawing.cs
- RuleSettingsCollection.cs
- OwnerDrawPropertyBag.cs
- ServiceModelActivationSectionGroup.cs
- _LocalDataStoreMgr.cs
- BitmapScalingModeValidation.cs
- CreateRefExpr.cs
- CultureInfo.cs
- DataGridViewHeaderCell.cs
- X500Name.cs
- UserPreferenceChangedEventArgs.cs
- ErrorStyle.cs
- ShaperBuffers.cs
- FixedSOMLineCollection.cs
- ToolStripItemClickedEventArgs.cs
- View.cs
- Int32Converter.cs
- TextTabProperties.cs
- FileClassifier.cs
- DrawingContext.cs
- DomainUpDown.cs
- Win32PrintDialog.cs
- ReachSerializationUtils.cs
- BoolExpression.cs
- SpellerInterop.cs
- sqlstateclientmanager.cs
- HashHelper.cs
- LocalizableResourceBuilder.cs
- Win32SafeHandles.cs
- CatalogPartCollection.cs
- CodeAttributeArgument.cs
- HTTPNotFoundHandler.cs
- MatrixCamera.cs
- ExtendedTransformFactory.cs
- NonParentingControl.cs
- BehaviorEditorPart.cs
- EmptyElement.cs
- LongAverageAggregationOperator.cs
- ActivityExecutorDelegateInfo.cs
- XmlSchemaChoice.cs
- PropertyValueUIItem.cs
- XPathParser.cs
- TdsParserStaticMethods.cs
- AssemblyNameProxy.cs
- HwndSourceKeyboardInputSite.cs