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
- QuotedPrintableStream.cs
- StickyNote.cs
- InputDevice.cs
- ConfigurationLocation.cs
- CaretElement.cs
- LinkedResource.cs
- ConnectionPointGlyph.cs
- BufferedWebEventProvider.cs
- ServiceReference.cs
- PropertyGroupDescription.cs
- BamlLocalizableResource.cs
- DesignerActionItemCollection.cs
- DetailsViewInsertedEventArgs.cs
- FrameworkElementFactoryMarkupObject.cs
- ProcessHostServerConfig.cs
- InheritablePropertyChangeInfo.cs
- SQLSingle.cs
- XmlTextAttribute.cs
- XmlElementAttribute.cs
- ComponentEditorForm.cs
- iisPickupDirectory.cs
- DataGridViewRowHeaderCell.cs
- TransformationRules.cs
- Stackframe.cs
- DataServiceClientException.cs
- ReadOnlyAttribute.cs
- EntityCommand.cs
- Style.cs
- SecurityKeyUsage.cs
- Token.cs
- CacheOutputQuery.cs
- DataGridClipboardCellContent.cs
- SQLBoolean.cs
- XmlSchemaResource.cs
- ErrorHandlerModule.cs
- ProviderSettingsCollection.cs
- ColorInterpolationModeValidation.cs
- ValueCollectionParameterReader.cs
- TreeNodeCollectionEditor.cs
- DataBindingCollection.cs
- EntitySetDataBindingList.cs
- BamlRecordWriter.cs
- FloatUtil.cs
- ToolStripGripRenderEventArgs.cs
- RestHandlerFactory.cs
- peersecurityelement.cs
- PointF.cs
- RoutedEventValueSerializer.cs
- DateTimeEditor.cs
- BuilderInfo.cs
- PathParser.cs
- BulletedList.cs
- RemotingSurrogateSelector.cs
- RichTextBox.cs
- BulletedListDesigner.cs
- FlowDocumentPaginator.cs
- BufferedOutputStream.cs
- DrawingContextDrawingContextWalker.cs
- InvalidPipelineStoreException.cs
- DockEditor.cs
- OleDbInfoMessageEvent.cs
- AmbientLight.cs
- Setter.cs
- InstanceLockException.cs
- EntityDesignerUtils.cs
- SplitterCancelEvent.cs
- ControlUtil.cs
- KeyEventArgs.cs
- CustomValidator.cs
- RenderContext.cs
- HttpRawResponse.cs
- LinkedDataMemberFieldEditor.cs
- DefinitionBase.cs
- HttpCachePolicy.cs
- EntityDataSourceSelectingEventArgs.cs
- EdmComplexPropertyAttribute.cs
- ObjectTag.cs
- PreviewPageInfo.cs
- AutomationPropertyInfo.cs
- DataSourceCacheDurationConverter.cs
- FixedSOMTableRow.cs
- FrugalList.cs
- WindowsListViewItem.cs
- MenuAutomationPeer.cs
- DomainConstraint.cs
- FormViewUpdateEventArgs.cs
- DataGridViewCellStyleConverter.cs
- DataGridTable.cs
- PropertiesTab.cs
- XmlNodeChangedEventArgs.cs
- WorkflowServiceNamespace.cs
- FamilyMap.cs
- WorkflowMarkupSerializerMapping.cs
- PageCatalogPart.cs
- DiscreteKeyFrames.cs
- ArrayExtension.cs
- BinaryObjectInfo.cs
- PointCollectionConverter.cs
- storepermission.cs
- DataColumnMappingCollection.cs