Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XmlSerializationGeneratedCode.cs
- PrintingPermission.cs
- MimeImporter.cs
- ProfileInfo.cs
- TableCellCollection.cs
- ImageField.cs
- CheckBoxRenderer.cs
- AutomationPatternInfo.cs
- DocumentPageTextView.cs
- ScrollChrome.cs
- InheritanceService.cs
- Activity.cs
- Matrix.cs
- ExpressionConverter.cs
- Page.cs
- ArcSegment.cs
- ILGenerator.cs
- RouteParser.cs
- Logging.cs
- TaiwanCalendar.cs
- Message.cs
- DeobfuscatingStream.cs
- FormViewInsertEventArgs.cs
- ToolStripContentPanel.cs
- JoinGraph.cs
- Bitmap.cs
- DesignerAttributeInfo.cs
- DataGridTableStyleMappingNameEditor.cs
- Style.cs
- ListView.cs
- TcpTransportManager.cs
- SkipQueryOptionExpression.cs
- LiteralSubsegment.cs
- ContourSegment.cs
- MouseGesture.cs
- ZipPackagePart.cs
- HttpWriter.cs
- SchemaNames.cs
- EventManager.cs
- SimpleWorkerRequest.cs
- Matrix3D.cs
- Int16.cs
- CodeTypeDelegate.cs
- SmtpFailedRecipientsException.cs
- Aggregates.cs
- MouseActionValueSerializer.cs
- BezierSegment.cs
- TextSelectionHelper.cs
- HttpHandlersSection.cs
- TabletDevice.cs
- TemplateInstanceAttribute.cs
- ContextMenuService.cs
- OdbcUtils.cs
- BamlLocalizationDictionary.cs
- XmlReturnReader.cs
- CompressStream.cs
- SwitchElementsCollection.cs
- HttpCookieCollection.cs
- OdbcParameter.cs
- Propagator.Evaluator.cs
- KeyEventArgs.cs
- InputReferenceExpression.cs
- LoginDesigner.cs
- Point.cs
- StickyNoteHelper.cs
- MultiDataTrigger.cs
- WindowsGraphicsCacheManager.cs
- ISFClipboardData.cs
- FormViewPagerRow.cs
- XmlSchemaParticle.cs
- BuildResultCache.cs
- WCFBuildProvider.cs
- InputLangChangeEvent.cs
- SynchronizationFilter.cs
- Publisher.cs
- EditCommandColumn.cs
- RegistryPermission.cs
- SmiXetterAccessMap.cs
- ToolBar.cs
- ADRoleFactoryConfiguration.cs
- WebException.cs
- XmlSchemaType.cs
- _ConnectOverlappedAsyncResult.cs
- WorkflowApplicationException.cs
- WebControlsSection.cs
- WeakEventTable.cs
- Assembly.cs
- Operand.cs
- ErrorFormatterPage.cs
- SystemShuttingDownException.cs
- DataServiceResponse.cs
- WorkItem.cs
- BypassElement.cs
- Int16AnimationUsingKeyFrames.cs
- WorkflowControlClient.cs
- PixelFormat.cs
- XmlSchemaSimpleContentExtension.cs
- UriTemplateEquivalenceComparer.cs
- Inline.cs
- FrameworkTemplate.cs