Code:
/ FX-1434 / FX-1434 / 1.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
- ReturnValue.cs
- PrivateFontCollection.cs
- DocumentOrderComparer.cs
- SchemaCreator.cs
- nulltextnavigator.cs
- XmlNamespaceDeclarationsAttribute.cs
- SessionEndedEventArgs.cs
- AccessViolationException.cs
- TimeEnumHelper.cs
- StylusCollection.cs
- StylusButtonCollection.cs
- NestPullup.cs
- ToolZone.cs
- SerialPort.cs
- Material.cs
- FacetDescription.cs
- AuthenticateEventArgs.cs
- Error.cs
- GridViewCommandEventArgs.cs
- ProtocolImporter.cs
- NavigatorOutput.cs
- Permission.cs
- ListDictionaryInternal.cs
- StringExpressionSet.cs
- exports.cs
- RuntimeWrappedException.cs
- Point3DCollection.cs
- CodeNamespaceImportCollection.cs
- ScrollItemPatternIdentifiers.cs
- EventLog.cs
- CodeFieldReferenceExpression.cs
- SqlCrossApplyToCrossJoin.cs
- ComponentCache.cs
- designeractionlistschangedeventargs.cs
- Block.cs
- SelectionRange.cs
- SerialPinChanges.cs
- HwndMouseInputProvider.cs
- URLString.cs
- UIElementAutomationPeer.cs
- ToolBarButtonDesigner.cs
- AppDomainUnloadedException.cs
- WebPartCancelEventArgs.cs
- ToolStripButton.cs
- DataGridViewComponentPropertyGridSite.cs
- ProvidersHelper.cs
- SqlDataSourceFilteringEventArgs.cs
- AnonymousIdentificationSection.cs
- GeneralTransform3DTo2DTo3D.cs
- ToolStripGrip.cs
- IProducerConsumerCollection.cs
- URL.cs
- InternalMappingException.cs
- RoutedEventConverter.cs
- ShutDownListener.cs
- Suspend.cs
- VerificationException.cs
- XPathDocumentNavigator.cs
- ToReply.cs
- FtpRequestCacheValidator.cs
- SQLDecimal.cs
- FormParameter.cs
- TextContainer.cs
- LabelDesigner.cs
- RelationshipManager.cs
- InputReferenceExpression.cs
- JsonWriter.cs
- SparseMemoryStream.cs
- RootProfilePropertySettingsCollection.cs
- ActivityUtilities.cs
- DataControlFieldCell.cs
- ConstructorArgumentAttribute.cs
- PointAnimation.cs
- Ref.cs
- EntityObject.cs
- ApplicationId.cs
- XmlWriterTraceListener.cs
- FilterRepeater.cs
- DBCSCodePageEncoding.cs
- SerializationSectionGroup.cs
- __FastResourceComparer.cs
- ListViewItemMouseHoverEvent.cs
- Validator.cs
- Reference.cs
- StoreItemCollection.Loader.cs
- Condition.cs
- ExclusiveTcpTransportManager.cs
- SafeCertificateStore.cs
- ScriptingAuthenticationServiceSection.cs
- EditorPartChrome.cs
- ComAdminInterfaces.cs
- ProcessThread.cs
- TdsRecordBufferSetter.cs
- DataSourceDescriptorCollection.cs
- NCryptSafeHandles.cs
- HyperLinkField.cs
- ItemContainerPattern.cs
- HierarchicalDataBoundControlAdapter.cs
- ConnectionInterfaceCollection.cs
- Int64KeyFrameCollection.cs