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
- ToolStripRendererSwitcher.cs
- DbConnectionOptions.cs
- CompilationUnit.cs
- HtmlEmptyTagControlBuilder.cs
- TextEditorSelection.cs
- SafeNativeMethods.cs
- SafeNativeMethods.cs
- ToolStripTextBox.cs
- FileClassifier.cs
- FullTextLine.cs
- ScrollItemProviderWrapper.cs
- JournalEntryStack.cs
- MetadataItemEmitter.cs
- SelfIssuedAuthAsymmetricKey.cs
- ILGenerator.cs
- DataRecordInfo.cs
- DSASignatureFormatter.cs
- SspiSecurityToken.cs
- IgnoreFileBuildProvider.cs
- UnionCodeGroup.cs
- DataSourceSelectArguments.cs
- ObjectSpanRewriter.cs
- MsmqIntegrationChannelListener.cs
- WindowsListViewItemCheckBox.cs
- Underline.cs
- Native.cs
- ObjectStateManagerMetadata.cs
- NativeActivityFaultContext.cs
- CompilationUtil.cs
- Assign.cs
- FrameDimension.cs
- AutoGeneratedField.cs
- NativeMethodsCLR.cs
- ContextBase.cs
- WinFormsUtils.cs
- WebContext.cs
- ServiceOperationListItem.cs
- MeasureData.cs
- CatalogPart.cs
- Int64AnimationBase.cs
- HostExecutionContextManager.cs
- CustomErrorCollection.cs
- ErrorFormatterPage.cs
- RtfFormatStack.cs
- StringHandle.cs
- DependencyObjectValidator.cs
- UIElementParaClient.cs
- StyleCollection.cs
- RelationshipEntry.cs
- ResXResourceSet.cs
- CookieParameter.cs
- TextPointerBase.cs
- MD5Cng.cs
- IdentityValidationException.cs
- ByteAnimationBase.cs
- EntityContainerEntitySetDefiningQuery.cs
- NativeMethodsOther.cs
- StackOverflowException.cs
- BindingContext.cs
- Random.cs
- SqlErrorCollection.cs
- ConfigViewGenerator.cs
- EntityDataSourceStatementEditorForm.cs
- Compiler.cs
- Int32RectConverter.cs
- TrailingSpaceComparer.cs
- EntityDataSourceContextDisposingEventArgs.cs
- CalculatedColumn.cs
- DataColumnMappingCollection.cs
- BooleanFacetDescriptionElement.cs
- AnnotationComponentChooser.cs
- HttpProfileBase.cs
- MdImport.cs
- RawStylusInput.cs
- Application.cs
- DiscardableAttribute.cs
- TiffBitmapDecoder.cs
- GorillaCodec.cs
- PageThemeParser.cs
- WebException.cs
- Binding.cs
- XMLSyntaxException.cs
- RequestCachingSection.cs
- ClientFormsAuthenticationMembershipProvider.cs
- KeyedCollection.cs
- GridViewRow.cs
- EncryptedKey.cs
- ToolZone.cs
- IImplicitResourceProvider.cs
- CTreeGenerator.cs
- CompositeFontParser.cs
- SvcMapFileSerializer.cs
- ResetableIterator.cs
- DesignerLoader.cs
- CodeAccessPermission.cs
- TargetControlTypeCache.cs
- ThrowHelper.cs
- OpenCollectionAsyncResult.cs
- TokenBasedSetEnumerator.cs
- AlignmentXValidation.cs