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
- MappingException.cs
- MemberDescriptor.cs
- Deflater.cs
- QilInvoke.cs
- SecurityToken.cs
- CreatingCookieEventArgs.cs
- BaseDataListPage.cs
- COSERVERINFO.cs
- Ops.cs
- RadioButtonPopupAdapter.cs
- SynchronizationFilter.cs
- AllMembershipCondition.cs
- BufferedStream2.cs
- GeometryModel3D.cs
- TreeNodeBinding.cs
- NameValuePermission.cs
- AppSettingsReader.cs
- DefaultValidator.cs
- MethodToken.cs
- URLEditor.cs
- Expression.cs
- ToolBar.cs
- XPathScanner.cs
- MultiByteCodec.cs
- SqlInternalConnectionTds.cs
- SaveLedgerEntryRequest.cs
- Serializer.cs
- XPathScanner.cs
- Stack.cs
- DebuggerAttributes.cs
- XmlSchemaSimpleTypeList.cs
- PartialToken.cs
- SslStreamSecurityBindingElement.cs
- ScrollItemPatternIdentifiers.cs
- ReferentialConstraint.cs
- EventKeyword.cs
- _ConnectionGroup.cs
- SettingsBase.cs
- DbException.cs
- FontUnit.cs
- XmlMapping.cs
- MatrixKeyFrameCollection.cs
- MulticastDelegate.cs
- VisualTreeHelper.cs
- CorrelationQuery.cs
- ButtonRenderer.cs
- WorkflowPrinting.cs
- StackBuilderSink.cs
- DynamicMethod.cs
- ImageSource.cs
- ExternalFile.cs
- RectConverter.cs
- WindowsSysHeader.cs
- ComponentChangingEvent.cs
- TypeDescriptorFilterService.cs
- QuaternionIndependentAnimationStorage.cs
- RemotingException.cs
- BuildProvider.cs
- ListViewTableCell.cs
- Registration.cs
- MostlySingletonList.cs
- PointCollectionConverter.cs
- GenerateTemporaryTargetAssembly.cs
- DateTimeOffsetAdapter.cs
- TriState.cs
- Scripts.cs
- Invariant.cs
- NestedContainer.cs
- Soap.cs
- BlockExpression.cs
- FilteredAttributeCollection.cs
- QilTargetType.cs
- AmbientProperties.cs
- ToolboxItem.cs
- SerializableTypeCodeDomSerializer.cs
- MemberJoinTreeNode.cs
- SqlClientFactory.cs
- BitmapEffectDrawingContextWalker.cs
- XmlSchemaDatatype.cs
- HttpRequest.cs
- DataExpression.cs
- RepeatInfo.cs
- HeaderedContentControl.cs
- ComponentEvent.cs
- DesignSurfaceServiceContainer.cs
- InvariantComparer.cs
- MdImport.cs
- Ref.cs
- COSERVERINFO.cs
- WebPartCatalogCloseVerb.cs
- HandleExceptionArgs.cs
- TemplatePropertyEntry.cs
- DataReceivedEventArgs.cs
- DataChangedEventManager.cs
- ObjectStateFormatter.cs
- WinInet.cs
- entityreference_tresulttype.cs
- PropertyManager.cs
- shaperfactoryquerycacheentry.cs
- Expressions.cs