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
- SmtpFailedRecipientsException.cs
- OleDbEnumerator.cs
- AssociatedControlConverter.cs
- DashStyles.cs
- QueueProcessor.cs
- HTTPNotFoundHandler.cs
- X509Utils.cs
- TrackBar.cs
- XmlCodeExporter.cs
- TrackingProfileCache.cs
- HttpApplication.cs
- IDispatchConstantAttribute.cs
- NamespaceList.cs
- AssemblyAssociatedContentFileAttribute.cs
- LockedActivityGlyph.cs
- COM2EnumConverter.cs
- ScriptControlManager.cs
- WindowsStatic.cs
- PageTheme.cs
- BitmapInitialize.cs
- _StreamFramer.cs
- UrlPropertyAttribute.cs
- RegexRunnerFactory.cs
- CacheRequest.cs
- NumericExpr.cs
- ScriptComponentDescriptor.cs
- SmtpNetworkElement.cs
- XmlNamespaceManager.cs
- DirectoryNotFoundException.cs
- TouchFrameEventArgs.cs
- Annotation.cs
- HttpApplicationFactory.cs
- FloaterParaClient.cs
- ToolStripContainer.cs
- XmlArrayItemAttributes.cs
- List.cs
- SqlTriggerAttribute.cs
- TextFindEngine.cs
- FixedDocumentSequencePaginator.cs
- x509store.cs
- WebColorConverter.cs
- EncodingInfo.cs
- LinqDataSourceSelectEventArgs.cs
- CollectionsUtil.cs
- AppDomainFactory.cs
- StringAnimationUsingKeyFrames.cs
- PropertyPath.cs
- PowerModeChangedEventArgs.cs
- DesignerVerbToolStripMenuItem.cs
- DataGridDetailsPresenterAutomationPeer.cs
- HttpRequestCacheValidator.cs
- DataGridViewImageCell.cs
- EmptyStringExpandableObjectConverter.cs
- SystemInfo.cs
- ProfileBuildProvider.cs
- XmlExpressionDumper.cs
- ToolStripContextMenu.cs
- StreamGeometry.cs
- ContentWrapperAttribute.cs
- glyphs.cs
- DurationConverter.cs
- EmptyQuery.cs
- FontCacheUtil.cs
- ByteConverter.cs
- CommonRemoteMemoryBlock.cs
- FocusTracker.cs
- CultureNotFoundException.cs
- RadioButtonDesigner.cs
- DataExchangeServiceBinder.cs
- DropDownButton.cs
- GridViewRow.cs
- Pen.cs
- GlobalEventManager.cs
- CriticalHandle.cs
- UInt16.cs
- RepeaterDataBoundAdapter.cs
- ServiceModelActivationSectionGroup.cs
- DataGridViewRowConverter.cs
- CompiledRegexRunner.cs
- TextEndOfLine.cs
- DataServiceKeyAttribute.cs
- TaiwanCalendar.cs
- MetadataResolver.cs
- GridLength.cs
- PublisherMembershipCondition.cs
- CodeMemberMethod.cs
- ObjectView.cs
- TreeViewImageKeyConverter.cs
- PathData.cs
- HttpRawResponse.cs
- SchemaImporter.cs
- OptimizerPatterns.cs
- SupportingTokenProviderSpecification.cs
- MulticastIPAddressInformationCollection.cs
- SmiSettersStream.cs
- SeverityFilter.cs
- GlyphManager.cs
- ClientRolePrincipal.cs
- LocalBuilder.cs
- AnnotationResourceCollection.cs