Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- PartialCachingAttribute.cs
- Attachment.cs
- Viewport3DVisual.cs
- StagingAreaInputItem.cs
- FileChangesMonitor.cs
- SafePEFileHandle.cs
- BamlResourceSerializer.cs
- httpapplicationstate.cs
- DataFieldCollectionEditor.cs
- SrgsToken.cs
- ExtendedPropertyCollection.cs
- PageContentCollection.cs
- FacetValueContainer.cs
- WorkflowLayouts.cs
- ServiceOperationParameter.cs
- DoneReceivingAsyncResult.cs
- IISUnsafeMethods.cs
- ErrorLog.cs
- x509utils.cs
- Canvas.cs
- State.cs
- XmlSerializationGeneratedCode.cs
- DbTransaction.cs
- TemplateBuilder.cs
- DbConnectionPoolIdentity.cs
- CodeTypeParameterCollection.cs
- SQLGuidStorage.cs
- QueryStringParameter.cs
- EntityContainerAssociationSet.cs
- dataSvcMapFileLoader.cs
- WizardForm.cs
- Simplifier.cs
- CodeVariableReferenceExpression.cs
- BitmapScalingModeValidation.cs
- MaterialGroup.cs
- SimpleApplicationHost.cs
- Splitter.cs
- XmlSchemaIdentityConstraint.cs
- IPEndPointCollection.cs
- XmlDictionaryString.cs
- ThemeDictionaryExtension.cs
- ManipulationStartingEventArgs.cs
- Automation.cs
- ScrollContentPresenter.cs
- Label.cs
- TargetParameterCountException.cs
- MenuItemCollectionEditorDialog.cs
- CodeDirectionExpression.cs
- PerCallInstanceContextProvider.cs
- RoleGroup.cs
- DataViewManagerListItemTypeDescriptor.cs
- AuthenticationModuleElement.cs
- WebSysDisplayNameAttribute.cs
- WebBrowserDesigner.cs
- OpCodes.cs
- ExclusiveTcpTransportManager.cs
- BaseAddressPrefixFilterElementCollection.cs
- DataGridCellsPanel.cs
- CodeCatchClause.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- WhileDesigner.cs
- Material.cs
- MembershipUser.cs
- latinshape.cs
- ReflectionTypeLoadException.cs
- Size.cs
- CqlQuery.cs
- HttpContextBase.cs
- WriterOutput.cs
- _SSPISessionCache.cs
- UInt16Converter.cs
- StructuredTypeEmitter.cs
- SourceItem.cs
- IssuedTokenServiceElement.cs
- MappingItemCollection.cs
- DynamicPropertyHolder.cs
- DesignerDataStoredProcedure.cs
- FlagPanel.cs
- Int16.cs
- PresentationTraceSources.cs
- WebUtil.cs
- XmlElementAttribute.cs
- DataGridViewCellMouseEventArgs.cs
- DesignerLoader.cs
- SpecularMaterial.cs
- BeginStoryboard.cs
- BehaviorDragDropEventArgs.cs
- BrowserDefinitionCollection.cs
- OdbcConnection.cs
- TextRunCacheImp.cs
- GiveFeedbackEvent.cs
- ThreadInterruptedException.cs
- BuildResult.cs
- RepeatBehavior.cs
- ConnectionsZone.cs
- CompositeScriptReferenceEventArgs.cs
- DataGridViewImageCell.cs
- DataTransferEventArgs.cs
- MaskedTextProvider.cs
- OLEDB_Util.cs