Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceModelConfigurationSectionGroup.cs
- SimpleTextLine.cs
- SQLMoney.cs
- WindowsGraphicsCacheManager.cs
- Certificate.cs
- RoutedEventValueSerializer.cs
- ToolStripDropDownClosingEventArgs.cs
- MenuItemCollection.cs
- MouseOverProperty.cs
- TrackPointCollection.cs
- Int32AnimationBase.cs
- RedirectionProxy.cs
- ExpressionValueEditor.cs
- Propagator.Evaluator.cs
- NavigationPropertyEmitter.cs
- GroupBox.cs
- CodeCommentStatementCollection.cs
- Underline.cs
- ContainerAction.cs
- NotificationContext.cs
- WindowHideOrCloseTracker.cs
- Exceptions.cs
- ExpressionPrinter.cs
- DrawingAttributes.cs
- BrowserDefinitionCollection.cs
- OdbcDataReader.cs
- StringCollection.cs
- ChineseLunisolarCalendar.cs
- Point3DIndependentAnimationStorage.cs
- CriticalHandle.cs
- PropertyChangedEventManager.cs
- ManagedWndProcTracker.cs
- ReferencedCollectionType.cs
- DynamicResourceExtensionConverter.cs
- DesignerContextDescriptor.cs
- ReferencedType.cs
- ExtenderProviderService.cs
- ChameleonKey.cs
- ITextView.cs
- httpserverutility.cs
- InvalidFilterCriteriaException.cs
- ProcessModuleCollection.cs
- XPathPatternParser.cs
- Command.cs
- UxThemeWrapper.cs
- ValidationPropertyAttribute.cs
- SqlTrackingQuery.cs
- SerializableAuthorizationContext.cs
- Image.cs
- JsonWriter.cs
- UTF7Encoding.cs
- PerfProviderCollection.cs
- ObjectListFieldCollection.cs
- PageThemeCodeDomTreeGenerator.cs
- DataGridViewCellCollection.cs
- Queue.cs
- SqlCommand.cs
- StatusBarPanel.cs
- WebBrowser.cs
- SrgsElementFactoryCompiler.cs
- GroupBoxRenderer.cs
- unitconverter.cs
- CompilerLocalReference.cs
- DateTimeConstantAttribute.cs
- _NegoStream.cs
- ConsoleEntryPoint.cs
- Validator.cs
- IPAddressCollection.cs
- FrameAutomationPeer.cs
- ProfileService.cs
- UserPrincipalNameElement.cs
- HttpListenerException.cs
- NotifyIcon.cs
- IPEndPointCollection.cs
- ListViewItemMouseHoverEvent.cs
- UnlockInstanceCommand.cs
- ExpressionServices.cs
- DoubleCollection.cs
- MobileListItem.cs
- Int16AnimationBase.cs
- DrawingContext.cs
- ObjRef.cs
- SqlWriter.cs
- CharacterMetrics.cs
- CheckBoxAutomationPeer.cs
- MSAANativeProvider.cs
- NotSupportedException.cs
- TransactionCache.cs
- ListView.cs
- XNodeSchemaApplier.cs
- AnnotationHighlightLayer.cs
- DispatcherTimer.cs
- EncryptedPackage.cs
- ResXBuildProvider.cs
- SimpleFieldTemplateFactory.cs
- InteropTrackingRecord.cs
- PrintEvent.cs
- HuffCodec.cs
- PauseStoryboard.cs
- OperationResponse.cs