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
- Signature.cs
- MeshGeometry3D.cs
- ExplicitDiscriminatorMap.cs
- TickBar.cs
- InfiniteIntConverter.cs
- SecurityAppliedMessage.cs
- XmlWrappingWriter.cs
- EllipseGeometry.cs
- TextTreeDeleteContentUndoUnit.cs
- PeerPresenceInfo.cs
- HttpInputStream.cs
- DuplexChannelBinder.cs
- TagNameToTypeMapper.cs
- TagMapInfo.cs
- ByteConverter.cs
- ValueType.cs
- HtmlLink.cs
- Application.cs
- ByteStreamMessageEncodingElement.cs
- RtfNavigator.cs
- MethodBody.cs
- RowCache.cs
- GridViewRowEventArgs.cs
- ListSortDescriptionCollection.cs
- SqlCommandSet.cs
- GeometryModel3D.cs
- JoinTreeSlot.cs
- RequestTimeoutManager.cs
- PropertyTabChangedEvent.cs
- Typeface.cs
- DataListAutoFormat.cs
- MailDefinition.cs
- TextAction.cs
- ScrollContentPresenter.cs
- DisplayMemberTemplateSelector.cs
- TypeListConverter.cs
- QilNode.cs
- AnimationTimeline.cs
- LoadedEvent.cs
- LogicalTreeHelper.cs
- CurrencyManager.cs
- NetworkInformationException.cs
- BamlTreeUpdater.cs
- ResourceProviderFactory.cs
- RepeaterItem.cs
- HotSpotCollectionEditor.cs
- PtsContext.cs
- MappingException.cs
- ConnectionsZone.cs
- MediaPlayer.cs
- DEREncoding.cs
- BinaryUtilClasses.cs
- MessageSecurityOverTcpElement.cs
- SmiContext.cs
- InvalidProgramException.cs
- DesignerAutoFormatStyle.cs
- SelectorItemAutomationPeer.cs
- RuleSettingsCollection.cs
- MethodExpression.cs
- TransformProviderWrapper.cs
- PermissionAttributes.cs
- AlgoModule.cs
- GridSplitter.cs
- Pair.cs
- Timeline.cs
- DataContractSerializer.cs
- InternalBufferManager.cs
- CodeTypeDelegate.cs
- TemplatedEditableDesignerRegion.cs
- DataGridViewHeaderCell.cs
- ClusterSafeNativeMethods.cs
- InternalRelationshipCollection.cs
- XmlSchemaCollection.cs
- ProcessModuleCollection.cs
- BaseCollection.cs
- NativeMethods.cs
- Compilation.cs
- QuadraticBezierSegment.cs
- TableLayoutCellPaintEventArgs.cs
- CircleHotSpot.cs
- Visitor.cs
- GeneralTransform3DTo2D.cs
- KeyboardNavigation.cs
- ArglessEventHandlerProxy.cs
- PathSegment.cs
- DSASignatureDeformatter.cs
- TableLayoutStyle.cs
- LicenseException.cs
- PersonalizationProviderHelper.cs
- XmlWhitespace.cs
- CombinedGeometry.cs
- DbException.cs
- DelegateSerializationHolder.cs
- InheritanceRules.cs
- ProjectionPruner.cs
- BoundsDrawingContextWalker.cs
- SoundPlayer.cs
- GestureRecognitionResult.cs
- DataGridViewLinkCell.cs
- ProtocolsConfiguration.cs