Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WebScriptMetadataFormatter.cs
- ButtonFieldBase.cs
- Stylesheet.cs
- TypeDescriptionProviderAttribute.cs
- DirectoryNotFoundException.cs
- FormViewPageEventArgs.cs
- IntranetCredentialPolicy.cs
- prompt.cs
- Win32NamedPipes.cs
- HtmlInputButton.cs
- OdbcEnvironmentHandle.cs
- XmlSchemaGroupRef.cs
- dtdvalidator.cs
- XmlAtomicValue.cs
- PageAdapter.cs
- AudioLevelUpdatedEventArgs.cs
- NetSectionGroup.cs
- DataColumn.cs
- UniqueConstraint.cs
- XmlAttributeCollection.cs
- DependencyPropertyChangedEventArgs.cs
- PageTheme.cs
- FilteredAttributeCollection.cs
- PackWebResponse.cs
- CodeTypeParameter.cs
- XmlNodeWriter.cs
- ObjectListDataBindEventArgs.cs
- TrustExchangeException.cs
- EmissiveMaterial.cs
- Vector3DAnimation.cs
- SafeLibraryHandle.cs
- FrameworkContentElement.cs
- Typography.cs
- CompositeTypefaceMetrics.cs
- MSHTMLHost.cs
- LabelEditEvent.cs
- TokenFactoryCredential.cs
- RepeatBehavior.cs
- DownloadProgressEventArgs.cs
- InvokeMethod.cs
- ResXResourceReader.cs
- WebPartMenuStyle.cs
- EntityDataSourceConfigureObjectContext.cs
- ProjectionPruner.cs
- XmlDocumentSchema.cs
- NoPersistScope.cs
- OleDbCommandBuilder.cs
- ArrayTypeMismatchException.cs
- HtmlElementErrorEventArgs.cs
- TextStore.cs
- InputMethodStateTypeInfo.cs
- SQLDateTimeStorage.cs
- HeaderedContentControl.cs
- StructuredTypeEmitter.cs
- Certificate.cs
- ContainerTracking.cs
- PageStatePersister.cs
- DesignerFrame.cs
- ResXResourceSet.cs
- HyperLinkColumn.cs
- ExpandSegment.cs
- EntityConnectionStringBuilderItem.cs
- ObjectConverter.cs
- SystemIcmpV6Statistics.cs
- ScriptingWebServicesSectionGroup.cs
- odbcmetadatafactory.cs
- __Error.cs
- Path.cs
- GridViewSelectEventArgs.cs
- RowsCopiedEventArgs.cs
- DataControlFieldCell.cs
- PropertyEmitterBase.cs
- ScheduleChanges.cs
- PhonemeConverter.cs
- XmlSchemaDocumentation.cs
- DecimalAnimation.cs
- XmlSchemaFacet.cs
- LinqDataSourceInsertEventArgs.cs
- Journaling.cs
- IItemContainerGenerator.cs
- SqlClientMetaDataCollectionNames.cs
- OdbcInfoMessageEvent.cs
- DebugView.cs
- DataGridItemCollection.cs
- FunctionImportElement.cs
- InProcStateClientManager.cs
- MdiWindowListStrip.cs
- WebPartZone.cs
- WebPartAuthorizationEventArgs.cs
- ProfileSettingsCollection.cs
- PolicyException.cs
- AuthenticationModulesSection.cs
- TabletCollection.cs
- TemplateFactory.cs
- ValidatingPropertiesEventArgs.cs
- FormViewPagerRow.cs
- XmlSerializer.cs
- List.cs
- TreeView.cs
- XmlMtomWriter.cs