Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Reflection / TargetParameterCountException.cs / 1305376 / TargetParameterCountException.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
// TargetParameterCountException is thrown when the number of parameter to an
//
// [....]
// invocation doesn't match the number expected.
//
//
//
//
namespace System.Reflection {
using System;
using SystemException = System.SystemException;
using System.Runtime.Serialization;
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
#if FEATURE_CORECLR
public sealed class TargetParameterCountException : Exception {
// hack to make thinner happy
#if false
}
#endif
#else
public sealed class TargetParameterCountException : ApplicationException {
#endif //FEATURE_CORECLR
public TargetParameterCountException()
: base(Environment.GetResourceString("Arg_TargetParameterCountException")) {
SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT);
}
public TargetParameterCountException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT);
}
public TargetParameterCountException(String message, Exception inner)
: base(message, inner) {
SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT);
}
internal TargetParameterCountException(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.
//
// ==--==
////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////
//
// TargetParameterCountException is thrown when the number of parameter to an
//
// [....]
// invocation doesn't match the number expected.
//
//
//
//
namespace System.Reflection {
using System;
using SystemException = System.SystemException;
using System.Runtime.Serialization;
[Serializable]
[System.Runtime.InteropServices.ComVisible(true)]
#if FEATURE_CORECLR
public sealed class TargetParameterCountException : Exception {
// hack to make thinner happy
#if false
}
#endif
#else
public sealed class TargetParameterCountException : ApplicationException {
#endif //FEATURE_CORECLR
public TargetParameterCountException()
: base(Environment.GetResourceString("Arg_TargetParameterCountException")) {
SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT);
}
public TargetParameterCountException(String message)
: base(message) {
SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT);
}
public TargetParameterCountException(String message, Exception inner)
: base(message, inner) {
SetErrorCode(__HResults.COR_E_TARGETPARAMCOUNT);
}
internal TargetParameterCountException(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
- XmlText.cs
- SplineKeyFrames.cs
- GeneralTransform3DTo2DTo3D.cs
- SecuritySessionServerSettings.cs
- SerTrace.cs
- TextFormatter.cs
- Interlocked.cs
- RowToParametersTransformer.cs
- XmlAnyElementAttributes.cs
- SchemaElementDecl.cs
- SqlClientFactory.cs
- CodeIdentifiers.cs
- DurableInstance.cs
- DataGridTextBoxColumn.cs
- HttpListenerResponse.cs
- LinkGrep.cs
- BounceEase.cs
- ArrowControl.xaml.cs
- FormViewRow.cs
- DeviceFiltersSection.cs
- EntityException.cs
- JsonClassDataContract.cs
- SimplePropertyEntry.cs
- SoapAttributes.cs
- DiagnosticStrings.cs
- DescendantBaseQuery.cs
- SourceItem.cs
- HtmlEmptyTagControlBuilder.cs
- AtomServiceDocumentSerializer.cs
- MetaForeignKeyColumn.cs
- RegexRunner.cs
- X509KeyIdentifierClauseType.cs
- GeometryHitTestResult.cs
- ProfileModule.cs
- XMLSyntaxException.cs
- BuildProvider.cs
- SiteMapNodeItem.cs
- PersistStreamTypeWrapper.cs
- PagesSection.cs
- SuppressIldasmAttribute.cs
- DataControlFieldCell.cs
- ReturnEventArgs.cs
- CodeCatchClauseCollection.cs
- RegionInfo.cs
- CodeBlockBuilder.cs
- HandlerWithFactory.cs
- HostedTcpTransportManager.cs
- IUnknownConstantAttribute.cs
- ParallelTimeline.cs
- Stackframe.cs
- DataControlImageButton.cs
- PassportIdentity.cs
- ReflectEventDescriptor.cs
- UpdatePanelTrigger.cs
- IdleTimeoutMonitor.cs
- ExecutionEngineException.cs
- PersistenceProvider.cs
- OutOfProcStateClientManager.cs
- ChooseAction.cs
- XpsImageSerializationService.cs
- ContentPlaceHolder.cs
- AppDomainFactory.cs
- MatrixAnimationBase.cs
- FontUnit.cs
- TextReader.cs
- SiteMapHierarchicalDataSourceView.cs
- RuntimeComponentFilter.cs
- CollectionViewSource.cs
- Vector3D.cs
- x509store.cs
- _CacheStreams.cs
- DataGridLinkButton.cs
- AsyncCompletedEventArgs.cs
- DataContext.cs
- IndexedGlyphRun.cs
- SqlUserDefinedAggregateAttribute.cs
- HttpWebResponse.cs
- Dictionary.cs
- BooleanSwitch.cs
- DataGridViewTextBoxColumn.cs
- DataGridViewColumnHeaderCell.cs
- TextSelectionProcessor.cs
- OdbcCommand.cs
- DropTarget.cs
- CodeMemberMethod.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- BuildManager.cs
- RoleService.cs
- WebBodyFormatMessageProperty.cs
- FileRecordSequence.cs
- COM2PropertyBuilderUITypeEditor.cs
- DesignerAutoFormatCollection.cs
- Registration.cs
- CodeArgumentReferenceExpression.cs
- XmlSchemaSearchPattern.cs
- PropertyNames.cs
- ResourceDefaultValueAttribute.cs
- ConfigXmlSignificantWhitespace.cs
- listitem.cs
- DbProviderFactory.cs