Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / clr / src / BCL / System / Reflection / TargetParameterCountException.cs / 1 / 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)]
public sealed class TargetParameterCountException : ApplicationException {
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)]
public sealed class TargetParameterCountException : ApplicationException {
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
- DataTemplate.cs
- DeviceContext2.cs
- PeerNameResolver.cs
- TreeNodeBinding.cs
- WebPartHelpVerb.cs
- AutomationPropertyChangedEventArgs.cs
- UpdateManifestForBrowserApplication.cs
- GroupBox.cs
- TypeExtensionConverter.cs
- RegexBoyerMoore.cs
- Console.cs
- SystemTcpConnection.cs
- TextDecoration.cs
- TypeExtensionConverter.cs
- ResourcePermissionBase.cs
- WebPartsPersonalization.cs
- RelationshipEndCollection.cs
- GridViewDeleteEventArgs.cs
- NativeMethodsOther.cs
- ProxyWebPartConnectionCollection.cs
- BitmapEffectDrawingContent.cs
- NonBatchDirectoryCompiler.cs
- NotificationContext.cs
- HttpHandlersSection.cs
- ItemType.cs
- GlyphRunDrawing.cs
- OleDbMetaDataFactory.cs
- HostingEnvironmentException.cs
- TrackingServices.cs
- CompoundFileIOPermission.cs
- RemoteWebConfigurationHost.cs
- XmlSerializerImportOptions.cs
- BinaryQueryOperator.cs
- WinInet.cs
- ServerValidateEventArgs.cs
- TypeToTreeConverter.cs
- SymLanguageType.cs
- ObjectDataSourceView.cs
- DateTimeConverter.cs
- DataMemberConverter.cs
- IPPacketInformation.cs
- BooleanFunctions.cs
- PrintPageEvent.cs
- PreloadedPackages.cs
- AesManaged.cs
- ComboBoxItem.cs
- SQLSingle.cs
- HyperLink.cs
- TransformedBitmap.cs
- EntityDataSourceContainerNameConverter.cs
- IPEndPoint.cs
- OracleSqlParser.cs
- PropertyMap.cs
- ChildChangedEventArgs.cs
- ProviderIncompatibleException.cs
- WebServiceFaultDesigner.cs
- Size.cs
- AssemblyBuilder.cs
- FtpWebRequest.cs
- ThreadStartException.cs
- DataControlImageButton.cs
- BitmapSource.cs
- CharacterBufferReference.cs
- DataViewListener.cs
- PropertyGridCommands.cs
- Annotation.cs
- WeakEventTable.cs
- Socket.cs
- LineSegment.cs
- LocatorManager.cs
- OracleBFile.cs
- MultilineStringConverter.cs
- RTLAwareMessageBox.cs
- TypeUsageBuilder.cs
- XPathDescendantIterator.cs
- BamlLocalizabilityResolver.cs
- FixedHighlight.cs
- HttpResponse.cs
- PaginationProgressEventArgs.cs
- MethodAccessException.cs
- VSWCFServiceContractGenerator.cs
- PrimitiveXmlSerializers.cs
- FormViewDeleteEventArgs.cs
- Merger.cs
- BindMarkupExtensionSerializer.cs
- CqlGenerator.cs
- CompoundFileDeflateTransform.cs
- EditorAttribute.cs
- ListCollectionView.cs
- DelegatingTypeDescriptionProvider.cs
- ReadOnlyHierarchicalDataSource.cs
- ConsumerConnectionPoint.cs
- Geometry.cs
- ClientRequest.cs
- StreamInfo.cs
- MethodImplAttribute.cs
- TimeStampChecker.cs
- BamlTreeNode.cs
- ImportCatalogPart.cs
- ConfigXmlSignificantWhitespace.cs