Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- DataGridParentRows.cs
- AssemblyResourceLoader.cs
- ScriptServiceAttribute.cs
- DelayLoadType.cs
- WindowPatternIdentifiers.cs
- OdbcConnectionFactory.cs
- PenThread.cs
- dtdvalidator.cs
- DecodeHelper.cs
- EvidenceTypeDescriptor.cs
- FastEncoder.cs
- Normalization.cs
- StructuralCache.cs
- MouseActionConverter.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- MenuItemCollectionEditor.cs
- PowerStatus.cs
- NameValueFileSectionHandler.cs
- InputEventArgs.cs
- GeneralTransform2DTo3DTo2D.cs
- DesignerAttribute.cs
- PropertyCondition.cs
- WebPartPersonalization.cs
- MasterPageBuildProvider.cs
- TraceListeners.cs
- BitmapInitialize.cs
- EntitySqlException.cs
- XDRSchema.cs
- XmlReflectionImporter.cs
- DetailsView.cs
- HwndAppCommandInputProvider.cs
- ExpressionWriter.cs
- MergeEnumerator.cs
- ActivityInfo.cs
- MediaPlayerState.cs
- ServiceDescriptionData.cs
- DoubleAnimationClockResource.cs
- HtmlInputHidden.cs
- CheckoutException.cs
- ProcessInfo.cs
- FtpCachePolicyElement.cs
- WebPageTraceListener.cs
- PropertyRef.cs
- ImageButton.cs
- ListBindingConverter.cs
- XmlSchemaExporter.cs
- ReadOnlyDataSource.cs
- ConnectionConsumerAttribute.cs
- RegistryExceptionHelper.cs
- IIS7ConfigurationLoader.cs
- TypeUtils.cs
- LinearQuaternionKeyFrame.cs
- XmlNamespaceDeclarationsAttribute.cs
- CodeSnippetTypeMember.cs
- MetadataItem_Static.cs
- RuleDefinitions.cs
- WebPartActionVerb.cs
- QilSortKey.cs
- PrintDocument.cs
- ActivityExecutor.cs
- GridPatternIdentifiers.cs
- HashMembershipCondition.cs
- ReadWriteControlDesigner.cs
- HandlerWithFactory.cs
- InheritanceContextHelper.cs
- WindowsClientElement.cs
- WindowsTab.cs
- mil_commands.cs
- HtmlTableRow.cs
- PrinterSettings.cs
- BaseProcessor.cs
- ParentQuery.cs
- MsmqTransportSecurity.cs
- ToolStripSplitStackLayout.cs
- AlphabetConverter.cs
- ProviderSettings.cs
- TreeNodeStyle.cs
- SerialReceived.cs
- TreeNodeConverter.cs
- MetadataCache.cs
- TemplateManager.cs
- StrokeCollection2.cs
- DrawingAttributesDefaultValueFactory.cs
- OleDbParameter.cs
- AliasGenerator.cs
- DataTableNewRowEvent.cs
- RectAnimationBase.cs
- XmlnsCache.cs
- VirtualDirectoryMappingCollection.cs
- IISMapPath.cs
- TemplateField.cs
- ColumnCollection.cs
- Figure.cs
- Number.cs
- MethodBody.cs
- MouseButtonEventArgs.cs
- TransactionWaitAsyncResult.cs
- WmfPlaceableFileHeader.cs
- HttpCapabilitiesBase.cs
- CallbackValidator.cs