Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / AddingNewEventArgs.cs / 1 / 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. //------------------------------------------------------------------------------ //// 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
- TypeConverter.cs
- LayoutTableCell.cs
- Menu.cs
- Floater.cs
- PeerInputChannel.cs
- DataPointer.cs
- ParseChildrenAsPropertiesAttribute.cs
- Font.cs
- UInt32Converter.cs
- HtmlGenericControl.cs
- ServiceMemoryGates.cs
- ImageFormat.cs
- CellLabel.cs
- IndentTextWriter.cs
- StorageEntitySetMapping.cs
- AnonymousIdentificationModule.cs
- WebPartConnection.cs
- TypeRefElement.cs
- TextTreeUndo.cs
- MessageQueue.cs
- HtmlInputControl.cs
- MenuItemBinding.cs
- CodeSubDirectory.cs
- PropertyGrid.cs
- SetUserPreferenceRequest.cs
- WebPartZoneCollection.cs
- EntityDataSourceStatementEditor.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- RuntimeArgumentHandle.cs
- _ProxyChain.cs
- FileLoadException.cs
- DataGridSortingEventArgs.cs
- CodeLinePragma.cs
- ClickablePoint.cs
- AutomationPatternInfo.cs
- EventLogPermission.cs
- PathGradientBrush.cs
- LineBreak.cs
- regiisutil.cs
- OutOfProcStateClientManager.cs
- TagNameToTypeMapper.cs
- ShaderEffect.cs
- PageBreakRecord.cs
- SoundPlayer.cs
- DataRelationCollection.cs
- StorageEndPropertyMapping.cs
- FormatterConverter.cs
- TextProviderWrapper.cs
- RemotingAttributes.cs
- ThaiBuddhistCalendar.cs
- APCustomTypeDescriptor.cs
- RayHitTestParameters.cs
- ItemCollection.cs
- NameSpaceExtractor.cs
- SqlInternalConnectionSmi.cs
- WebConfigurationHost.cs
- MostlySingletonList.cs
- GroupBox.cs
- ClipboardData.cs
- ArcSegment.cs
- PeerContact.cs
- InstanceKey.cs
- MulticastDelegate.cs
- FormsAuthenticationUser.cs
- DataGridTableCollection.cs
- Types.cs
- PersonalizableTypeEntry.cs
- GroupBoxRenderer.cs
- TextElementEditingBehaviorAttribute.cs
- SQLBinaryStorage.cs
- ListViewItem.cs
- ReaderWriterLockWrapper.cs
- DataGridViewRowPostPaintEventArgs.cs
- DataControlCommands.cs
- TextLine.cs
- GreaterThanOrEqual.cs
- AuthStoreRoleProvider.cs
- TypeInfo.cs
- QueryCursorEventArgs.cs
- TableLayoutStyleCollection.cs
- SimpleHandlerFactory.cs
- HuffmanTree.cs
- RemoteEndpointMessageProperty.cs
- NavigationPropertyEmitter.cs
- ToolstripProfessionalRenderer.cs
- UITypeEditor.cs
- hresults.cs
- FileSecurity.cs
- AstTree.cs
- ItemContainerGenerator.cs
- EntityParameterCollection.cs
- DataControlFieldHeaderCell.cs
- LongValidatorAttribute.cs
- WinCategoryAttribute.cs
- MULTI_QI.cs
- ProcessDesigner.cs
- InputProcessorProfilesLoader.cs
- ClientSideProviderDescription.cs
- InternalConfigEventArgs.cs
- nulltextcontainer.cs