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
- VerticalAlignConverter.cs
- AssemblyBuilder.cs
- InfiniteTimeSpanConverter.cs
- HttpHandlerAction.cs
- ContainerUtilities.cs
- TypeInfo.cs
- MenuItemStyle.cs
- FileRegion.cs
- Stack.cs
- DefaultProxySection.cs
- BaseTemplateParser.cs
- IntegerCollectionEditor.cs
- WindowsGraphicsCacheManager.cs
- ToolBarButton.cs
- PhonemeEventArgs.cs
- ListSurrogate.cs
- KeyProperty.cs
- DataColumn.cs
- HostingEnvironment.cs
- HMACSHA256.cs
- AppDomainFactory.cs
- _SpnDictionary.cs
- DoubleLinkListEnumerator.cs
- ListViewHitTestInfo.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- AutomationTextAttribute.cs
- UnionExpr.cs
- XmlSerializerAssemblyAttribute.cs
- XmlSerializer.cs
- EdmEntityTypeAttribute.cs
- HierarchicalDataBoundControl.cs
- EnumBuilder.cs
- CategoryGridEntry.cs
- SupportsPreviewControlAttribute.cs
- EntityDataSourceSelectedEventArgs.cs
- ProcessDesigner.cs
- CacheRequest.cs
- SectionRecord.cs
- UserControlParser.cs
- SqlGenericUtil.cs
- Process.cs
- ScriptRegistrationManager.cs
- translator.cs
- OleDbParameterCollection.cs
- ExtendedProtectionPolicyTypeConverter.cs
- PriorityRange.cs
- BlurEffect.cs
- ValidationResults.cs
- EntityDataSourceWrapperCollection.cs
- ToolStripItem.cs
- Scene3D.cs
- MediaTimeline.cs
- GridEntryCollection.cs
- SHA1Managed.cs
- BrowserCapabilitiesCompiler.cs
- WasHttpModulesInstallComponent.cs
- TableLayoutSettingsTypeConverter.cs
- ReversePositionQuery.cs
- Types.cs
- EntityModelSchemaGenerator.cs
- RubberbandSelector.cs
- UpdateProgress.cs
- TreeNode.cs
- MergeLocalizationDirectives.cs
- XmlSignatureManifest.cs
- HtmlValidatorAdapter.cs
- HttpServerVarsCollection.cs
- MultipleViewPatternIdentifiers.cs
- WebBaseEventKeyComparer.cs
- CFStream.cs
- CounterCreationDataCollection.cs
- DataGridViewCheckBoxColumn.cs
- XmlSchemaExporter.cs
- HtmlInputText.cs
- ProfileInfo.cs
- TreeNodeStyleCollectionEditor.cs
- PropertyDescriptorComparer.cs
- FormViewUpdateEventArgs.cs
- AbsoluteQuery.cs
- SelectionListComponentEditor.cs
- StyleXamlParser.cs
- LockCookie.cs
- InternalConfigHost.cs
- StylusPointPropertyInfoDefaults.cs
- SelectionEditingBehavior.cs
- EventPropertyMap.cs
- HttpBrowserCapabilitiesBase.cs
- DataColumnMappingCollection.cs
- MsmqProcessProtocolHandler.cs
- BindingWorker.cs
- ClientTargetSection.cs
- NumericUpDownAccelerationCollection.cs
- Lasso.cs
- BoundField.cs
- InstanceLockLostException.cs
- MailFileEditor.cs
- EntitySetDataBindingList.cs
- MostlySingletonList.cs
- DataBinding.cs
- SafeMarshalContext.cs