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
- ConfigXmlComment.cs
- IsolatedStorageFile.cs
- SmtpException.cs
- GridItem.cs
- XhtmlConformanceSection.cs
- ButtonBase.cs
- EntityDataSourceDesignerHelper.cs
- DataGridColumn.cs
- DataSysAttribute.cs
- DesignerForm.cs
- PieceDirectory.cs
- SchemaAttDef.cs
- ApplicationSettingsBase.cs
- WebConvert.cs
- SR.cs
- RichTextBoxAutomationPeer.cs
- DecoderFallbackWithFailureFlag.cs
- Camera.cs
- SByte.cs
- Component.cs
- MaskedTextProvider.cs
- SqlUtil.cs
- MethodBuilder.cs
- PersonalizationEntry.cs
- SqlWebEventProvider.cs
- PartialList.cs
- TextBoxBase.cs
- BrowserInteropHelper.cs
- Matrix.cs
- MatrixCamera.cs
- ParallelTimeline.cs
- HttpCacheParams.cs
- xmlsaver.cs
- SqlDataSourceQuery.cs
- PrivacyNoticeBindingElement.cs
- PassportIdentity.cs
- SqlInternalConnectionSmi.cs
- TextStore.cs
- SecurityManager.cs
- FixUp.cs
- ProtocolReflector.cs
- WorkflowOperationAsyncResult.cs
- SerializerWriterEventHandlers.cs
- CurrencyManager.cs
- WebScriptServiceHost.cs
- FixedDocumentPaginator.cs
- AspCompat.cs
- ApplicationException.cs
- EmbeddedObject.cs
- SplineKeyFrames.cs
- OneOfTypeConst.cs
- DataGridTemplateColumn.cs
- ManagementQuery.cs
- TreeViewImageGenerator.cs
- SchemaEntity.cs
- WinEventQueueItem.cs
- ProcessThread.cs
- DateRangeEvent.cs
- EpmContentDeSerializer.cs
- WebEventTraceProvider.cs
- ContextMarshalException.cs
- CommandPlan.cs
- WsatConfiguration.cs
- EncodingTable.cs
- CodeLabeledStatement.cs
- ExpressionVisitor.cs
- RegexTree.cs
- Double.cs
- WebPartVerb.cs
- TimeManager.cs
- ItemAutomationPeer.cs
- GridViewColumnCollectionChangedEventArgs.cs
- ScopelessEnumAttribute.cs
- x509store.cs
- HandledEventArgs.cs
- SafeNativeMethodsOther.cs
- DependencySource.cs
- WindowsGraphicsCacheManager.cs
- dbenumerator.cs
- FileVersionInfo.cs
- ProfileManager.cs
- Activity.cs
- ChangeBlockUndoRecord.cs
- ScriptHandlerFactory.cs
- DrawingCollection.cs
- TrackingMemoryStreamFactory.cs
- CodeNamespaceImport.cs
- ButtonStandardAdapter.cs
- ExpandCollapsePattern.cs
- RoleManagerModule.cs
- ProtocolInformationWriter.cs
- ObjectDataSourceMethodEventArgs.cs
- FaultPropagationQuery.cs
- SymLanguageVendor.cs
- BuildProviderAppliesToAttribute.cs
- EditorServiceContext.cs
- XmlElement.cs
- XPathPatternBuilder.cs
- PolyBezierSegment.cs
- ClientSponsor.cs