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
- XmlDataSource.cs
- SystemGatewayIPAddressInformation.cs
- GenericTypeParameterBuilder.cs
- ActivityPropertyReference.cs
- errorpatternmatcher.cs
- DesignTimeXamlWriter.cs
- XamlTemplateSerializer.cs
- PathStreamGeometryContext.cs
- Decorator.cs
- TransportContext.cs
- XmlDomTextWriter.cs
- ResourceProperty.cs
- ActiveDocumentEvent.cs
- ChangeBlockUndoRecord.cs
- ControlParser.cs
- ClipboardData.cs
- AppModelKnownContentFactory.cs
- IgnoreDataMemberAttribute.cs
- AddInControllerImpl.cs
- EventPrivateKey.cs
- OleDbInfoMessageEvent.cs
- Certificate.cs
- ActiveDocumentEvent.cs
- RegexWorker.cs
- CustomWebEventKey.cs
- HttpStreamMessageEncoderFactory.cs
- BitmapEffectOutputConnector.cs
- StringStorage.cs
- SqlConnectionPoolGroupProviderInfo.cs
- CapabilitiesState.cs
- LinkArea.cs
- ASCIIEncoding.cs
- FilterQueryOptionExpression.cs
- Block.cs
- ReadOnlyCollectionBase.cs
- ScriptModule.cs
- MappingMetadataHelper.cs
- WebPartConnectionsCancelVerb.cs
- OleDbErrorCollection.cs
- BufferedOutputStream.cs
- TimeZone.cs
- PathNode.cs
- XmlSchemaNotation.cs
- ResourcesBuildProvider.cs
- ObjectDataSourceEventArgs.cs
- ActionItem.cs
- HatchBrush.cs
- _NegoState.cs
- RegistrySecurity.cs
- Evaluator.cs
- ImageFormatConverter.cs
- RuntimeConfigLKG.cs
- SQLMembershipProvider.cs
- StringDictionary.cs
- ResourcesGenerator.cs
- parserscommon.cs
- SqlExpressionNullability.cs
- SiblingIterators.cs
- XamlSerializerUtil.cs
- CellQuery.cs
- PersistChildrenAttribute.cs
- FileDialog_Vista_Interop.cs
- Pair.cs
- Models.cs
- SBCSCodePageEncoding.cs
- hresults.cs
- XmlFileEditor.cs
- ServiceActivationException.cs
- SeekStoryboard.cs
- ResourcesGenerator.cs
- GreaterThan.cs
- LogReserveAndAppendState.cs
- DigestComparer.cs
- ProxyAttribute.cs
- OrderingExpression.cs
- Behavior.cs
- EdmToObjectNamespaceMap.cs
- AliasExpr.cs
- GridViewAutomationPeer.cs
- ConfigXmlComment.cs
- TrackingRecord.cs
- TranslateTransform3D.cs
- BuildProvidersCompiler.cs
- CodeRegionDirective.cs
- SamlAction.cs
- NTAccount.cs
- Stream.cs
- DataBinding.cs
- InplaceBitmapMetadataWriter.cs
- OnOperation.cs
- shaperfactoryquerycacheentry.cs
- SqlEnums.cs
- ThreadPool.cs
- DeobfuscatingStream.cs
- GeneralTransform.cs
- EdmConstants.cs
- IPAddress.cs
- HttpFileCollectionBase.cs
- ConfigXmlSignificantWhitespace.cs
- mediaeventargs.cs