Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / ArgumentNullException.cs / 1305376 / 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); } [System.Security.SecurityCritical] // auto-generated_required protected ArgumentNullException(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
- TextBoxAutomationPeer.cs
- ObjectConverter.cs
- AnimatedTypeHelpers.cs
- ToolStripTextBox.cs
- ObjectDataSourceEventArgs.cs
- SafeEventLogReadHandle.cs
- MachineSettingsSection.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- XmlTextReaderImplHelpers.cs
- _DisconnectOverlappedAsyncResult.cs
- ValidatingReaderNodeData.cs
- BitmapEffect.cs
- FragmentNavigationEventArgs.cs
- ChtmlImageAdapter.cs
- BaseParser.cs
- StartUpEventArgs.cs
- DateTimeFormatInfo.cs
- DirectionalLight.cs
- RowSpanVector.cs
- ToolStripButton.cs
- GeometryGroup.cs
- RequestDescription.cs
- ControlsConfig.cs
- ListDictionaryInternal.cs
- AudioBase.cs
- AuthenticationSection.cs
- SecurityContextCookieSerializer.cs
- DateTimePickerDesigner.cs
- NamespaceList.cs
- SelectionHighlightInfo.cs
- CaretElement.cs
- PointAnimation.cs
- SQLSingle.cs
- DbConnectionPool.cs
- DataGridViewRowPostPaintEventArgs.cs
- ThicknessConverter.cs
- HashHelper.cs
- HtmlInputButton.cs
- ProbeMatches11.cs
- CodeGen.cs
- SqlCrossApplyToCrossJoin.cs
- SetUserPreferenceRequest.cs
- TemplateBindingExpression.cs
- DesignerDataConnection.cs
- FrameDimension.cs
- PasswordDeriveBytes.cs
- PkcsUtils.cs
- _AutoWebProxyScriptHelper.cs
- SoapMessage.cs
- BindingNavigator.cs
- SecurityResources.cs
- IncrementalCompileAnalyzer.cs
- ImageSourceConverter.cs
- DataGridViewCellPaintingEventArgs.cs
- MultipleViewPattern.cs
- ViewDesigner.cs
- AtomicFile.cs
- XPathDocument.cs
- PathTooLongException.cs
- FixedSOMFixedBlock.cs
- FrameAutomationPeer.cs
- BrowserCapabilitiesCodeGenerator.cs
- RepeatInfo.cs
- DataGridViewTextBoxCell.cs
- MsdtcClusterUtils.cs
- DropShadowBitmapEffect.cs
- ColumnMap.cs
- BordersPage.cs
- ListBoxItem.cs
- TextElementEnumerator.cs
- PeerName.cs
- AbsoluteQuery.cs
- DbConnectionOptions.cs
- DbProviderFactory.cs
- SendActivityDesignerTheme.cs
- Duration.cs
- MemberPath.cs
- EdmSchemaAttribute.cs
- Int32Collection.cs
- HtmlPanelAdapter.cs
- CachedTypeface.cs
- ConstraintStruct.cs
- SettingsPropertyNotFoundException.cs
- VisualTarget.cs
- TextServicesDisplayAttribute.cs
- SqlCacheDependency.cs
- ProfileParameter.cs
- Soap.cs
- DesignerHost.cs
- MsmqVerifier.cs
- SupportsEventValidationAttribute.cs
- GeometryModel3D.cs
- ResourceProperty.cs
- SynchronousReceiveBehavior.cs
- QilIterator.cs
- LostFocusEventManager.cs
- ManipulationDeltaEventArgs.cs
- CodeTypeParameterCollection.cs
- BamlMapTable.cs
- Message.cs