Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / ArgumentNullException.cs / 1 / ArgumentNullException.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== /*============================================================================== ** ** Class: ArgumentNullException ** ** ** Purpose: Exception class for null arguments to a method. ** ** =============================================================================*/ namespace System { using System; using System.Runtime.Serialization; using System.Runtime.Remoting; using System.Security.Permissions; // The ArgumentException is thrown when an argument // is null when it shouldn't be. // [System.Runtime.InteropServices.ComVisible(true)] [Serializable] public class ArgumentNullException : ArgumentException { // Creates a new ArgumentNullException with its message // string set to a default message explaining an argument was null. public ArgumentNullException() : base(Environment.GetResourceString("ArgumentNull_Generic")) { // Use E_POINTER - COM used that for null pointers. Description is "invalid pointer" SetErrorCode(__HResults.E_POINTER); } public ArgumentNullException(String paramName) : base(Environment.GetResourceString("ArgumentNull_Generic"), paramName) { SetErrorCode(__HResults.E_POINTER); } public ArgumentNullException(String message, Exception innerException) : base(message, innerException) { SetErrorCode(__HResults.E_POINTER); } public ArgumentNullException(String paramName, String message) : base(message, paramName) { SetErrorCode(__HResults.E_POINTER); } [SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags=SecurityPermissionFlag.SerializationFormatter)] protected ArgumentNullException(SerializationInfo info, StreamingContext context) : base(info, context) { } } }
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PreviewPageInfo.cs
- SeverityFilter.cs
- HttpCapabilitiesSectionHandler.cs
- TreeViewBindingsEditorForm.cs
- OleServicesContext.cs
- ExceptionRoutedEventArgs.cs
- ZipIOFileItemStream.cs
- ColorContext.cs
- XmlEventCache.cs
- QueryOutputWriterV1.cs
- CompilerCollection.cs
- SubqueryRules.cs
- CharacterHit.cs
- XPathNavigator.cs
- EditingMode.cs
- AttributeData.cs
- LinqDataSourceContextEventArgs.cs
- TransformGroup.cs
- DispatcherEventArgs.cs
- FixedTextView.cs
- RequestCacheManager.cs
- StateDesignerConnector.cs
- SHA256Managed.cs
- LocatorPart.cs
- ColorContext.cs
- PipelineModuleStepContainer.cs
- FactoryMaker.cs
- SafeFileMapViewHandle.cs
- Rule.cs
- AdornedElementPlaceholder.cs
- CacheOutputQuery.cs
- ListControlDataBindingHandler.cs
- IIS7WorkerRequest.cs
- WebBrowserSiteBase.cs
- versioninfo.cs
- OraclePermissionAttribute.cs
- RadioButtonAutomationPeer.cs
- PermissionListSet.cs
- StreamGeometry.cs
- listitem.cs
- DataGridColumnCollection.cs
- DataPagerCommandEventArgs.cs
- TrackingMemoryStream.cs
- TypeConverterMarkupExtension.cs
- FrameworkReadOnlyPropertyMetadata.cs
- CodeDOMProvider.cs
- RangeExpression.cs
- Visual3D.cs
- ItemCheckEvent.cs
- VerificationException.cs
- EntityContainer.cs
- CacheEntry.cs
- DbDataReader.cs
- TextFindEngine.cs
- ListChangedEventArgs.cs
- EndpointFilterProvider.cs
- XmlIncludeAttribute.cs
- TypeNameConverter.cs
- FrameSecurityDescriptor.cs
- ParentUndoUnit.cs
- PageParser.cs
- Mutex.cs
- TextModifierScope.cs
- entitydatasourceentitysetnameconverter.cs
- WindowsAuthenticationModule.cs
- FontNameEditor.cs
- AssemblyInfo.cs
- FileInfo.cs
- TypeCacheManager.cs
- DataSourceIDConverter.cs
- StrongNameIdentityPermission.cs
- VisualState.cs
- WebContentFormatHelper.cs
- Button.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- CharacterShapingProperties.cs
- baseshape.cs
- AdCreatedEventArgs.cs
- EntitySetBaseCollection.cs
- StringConverter.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- CancellationState.cs
- SettingsProviderCollection.cs
- BitmapEffectGroup.cs
- ChangeDirector.cs
- FormParameter.cs
- ServiceModelActivationSectionGroup.cs
- AuthenticationService.cs
- exports.cs
- TagPrefixAttribute.cs
- ListViewDeletedEventArgs.cs
- StyleSheet.cs
- ListViewSortEventArgs.cs
- SessionParameter.cs
- HtmlDocument.cs
- SafeSecurityHandles.cs
- TextEffect.cs
- FunctionParameter.cs
- SafeNativeMethods.cs
- DataKey.cs