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
- XmlAggregates.cs
- MsmqChannelFactoryBase.cs
- SettingsPropertyValueCollection.cs
- FontCacheUtil.cs
- _UriTypeConverter.cs
- FederatedMessageSecurityOverHttpElement.cs
- DataTransferEventArgs.cs
- SizeAnimationBase.cs
- TableColumnCollectionInternal.cs
- XmlSchemaIdentityConstraint.cs
- DiagnosticsElement.cs
- SqlReferenceCollection.cs
- CombinedTcpChannel.cs
- ArraySet.cs
- ItemCollectionEditor.cs
- MetadataAssemblyHelper.cs
- CodeMemberMethod.cs
- Mutex.cs
- WindowsTreeView.cs
- GridItemPattern.cs
- MultiPartWriter.cs
- ButtonFlatAdapter.cs
- SynchronizedDisposablePool.cs
- ISSmlParser.cs
- Selection.cs
- ChangeToolStripParentVerb.cs
- HttpStreamFormatter.cs
- DataGridViewCheckBoxColumn.cs
- TableItemPattern.cs
- XmlSchemaInferenceException.cs
- HtmlTableRow.cs
- WebMessageEncoderFactory.cs
- XmlNullResolver.cs
- Query.cs
- ArrayListCollectionBase.cs
- RepeatButton.cs
- ValidateNames.cs
- DebugViewWriter.cs
- IdentityValidationException.cs
- sitestring.cs
- HttpInputStream.cs
- RemoteEndpointMessageProperty.cs
- AuthorizationRule.cs
- DeviceContexts.cs
- DataSourceSelectArguments.cs
- FormatException.cs
- TableParagraph.cs
- DataColumnChangeEvent.cs
- XmlValidatingReaderImpl.cs
- SqlDataSourceTableQuery.cs
- XAMLParseException.cs
- SqlConnectionStringBuilder.cs
- FormsAuthenticationUserCollection.cs
- SqlRowUpdatedEvent.cs
- AttributeEmitter.cs
- IgnoreFileBuildProvider.cs
- EndEvent.cs
- InputReportEventArgs.cs
- HtmlWindow.cs
- LinkGrep.cs
- HttpWriter.cs
- RuntimeVariablesExpression.cs
- StreamInfo.cs
- TypeExtensionSerializer.cs
- querybuilder.cs
- EventLogEntry.cs
- ToolBarTray.cs
- OdbcEnvironmentHandle.cs
- DataColumnMapping.cs
- UrlAuthorizationModule.cs
- MediaElementAutomationPeer.cs
- embossbitmapeffect.cs
- SerializationAttributes.cs
- ASCIIEncoding.cs
- UpdateEventArgs.cs
- PrimitiveSchema.cs
- InvalidComObjectException.cs
- ConditionalWeakTable.cs
- ScalarOps.cs
- XmlILOptimizerVisitor.cs
- Debugger.cs
- SettingsPropertyIsReadOnlyException.cs
- CircleHotSpot.cs
- RegexCharClass.cs
- COMException.cs
- ISCIIEncoding.cs
- AuthenticatingEventArgs.cs
- BoolExpr.cs
- AncillaryOps.cs
- RegexMatchCollection.cs
- MethodRental.cs
- SqlUtils.cs
- ServiceObjectContainer.cs
- ConfigXmlComment.cs
- AddInProcess.cs
- SpeechAudioFormatInfo.cs
- InheritablePropertyChangeInfo.cs
- DateTimeOffset.cs
- _Events.cs
- BuiltInExpr.cs