Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / AddingNewEventArgs.cs / 1305376 / AddingNewEventArgs.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System; using System.ComponentModel; using System.Security.Permissions; ////// Provides data for an event that signals the adding of a new object /// to a list, allowing any event handler to supply the new object. If /// no event handler supplies a new object to use, the list should create /// one itself. /// [HostProtection(SharedState = true)] public class AddingNewEventArgs : EventArgs { private object newObject = null; ////// Initializes a new instance of the public AddingNewEventArgs() : base() { } ///class, /// with no new object defined. /// /// Initializes a new instance of the public AddingNewEventArgs(object newObject) : base() { this.newObject = newObject; } ///class, /// with the specified object defined as the default new object. /// /// Gets or sets the new object that will be added to the list. /// public object NewObject { get { return newObject; } set { newObject = value; } } } } // 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
- DefinitionBase.cs
- HighContrastHelper.cs
- FaultImportOptions.cs
- VectorAnimation.cs
- ToolboxItemWrapper.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- LinqDataSourceView.cs
- PersonalizationStateInfo.cs
- FaultDescriptionCollection.cs
- ButtonBaseAutomationPeer.cs
- filewebresponse.cs
- ByteAnimation.cs
- TextDocumentView.cs
- CodeDomSerializerException.cs
- WebDisplayNameAttribute.cs
- HandlerWithFactory.cs
- AmbientValueAttribute.cs
- NameValueConfigurationElement.cs
- TemplateBuilder.cs
- XmlUtil.cs
- ItemDragEvent.cs
- CacheHelper.cs
- versioninfo.cs
- BaseDataBoundControlDesigner.cs
- DivideByZeroException.cs
- CommandPlan.cs
- MetafileHeaderWmf.cs
- DataListItemEventArgs.cs
- ControlBindingsCollection.cs
- ListViewTableRow.cs
- PropertyPath.cs
- EmptyStringExpandableObjectConverter.cs
- XmlSerializerAssemblyAttribute.cs
- ExpressionBindings.cs
- ISFClipboardData.cs
- storepermission.cs
- CatalogPart.cs
- DrawingImage.cs
- Stack.cs
- MemberNameValidator.cs
- SqlUserDefinedAggregateAttribute.cs
- Base64Encoder.cs
- TreeViewDataItemAutomationPeer.cs
- SmtpFailedRecipientsException.cs
- ApplicationInfo.cs
- FontUnitConverter.cs
- ToolStripCodeDomSerializer.cs
- ToolBarPanel.cs
- _FtpDataStream.cs
- TableLayoutPanelCellPosition.cs
- ResourcePart.cs
- Camera.cs
- ColorContextHelper.cs
- HandleRef.cs
- SemaphoreFullException.cs
- SQLInt32.cs
- ErrorCodes.cs
- Configuration.cs
- DropTarget.cs
- KoreanCalendar.cs
- ShellProvider.cs
- ListenerElementsCollection.cs
- SrgsElement.cs
- TreeNode.cs
- DocumentOutline.cs
- NavigatingCancelEventArgs.cs
- DescendentsWalkerBase.cs
- XmlNodeReader.cs
- DataGridViewCellMouseEventArgs.cs
- BitmapMetadataEnumerator.cs
- SystemException.cs
- Contracts.cs
- CaseCqlBlock.cs
- Win32SafeHandles.cs
- TcpProcessProtocolHandler.cs
- ClientConfigurationHost.cs
- DbCommandDefinition.cs
- AstTree.cs
- ManipulationBoundaryFeedbackEventArgs.cs
- Parallel.cs
- CaretElement.cs
- Compensate.cs
- BuildProvidersCompiler.cs
- ElementAction.cs
- MultiTouchSystemGestureLogic.cs
- DbMetaDataFactory.cs
- Single.cs
- NamespaceInfo.cs
- MethodBuilder.cs
- ObjectHelper.cs
- GridView.cs
- RelationshipEndMember.cs
- CacheEntry.cs
- MultiBinding.cs
- GridToolTip.cs
- DesignerTransactionCloseEvent.cs
- MsmqProcessProtocolHandler.cs
- ReflectionTypeLoadException.cs
- RSAPKCS1SignatureFormatter.cs
- RemotingException.cs