Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XamlSerializerUtil.cs
- EntityDataSourceState.cs
- Stack.cs
- SafeSecurityHandles.cs
- StructuralObject.cs
- AssemblyInfo.cs
- XmlEventCache.cs
- DescriptionAttribute.cs
- WindowsProgressbar.cs
- SafePointer.cs
- MissingMemberException.cs
- BindingRestrictions.cs
- NestedContainer.cs
- Padding.cs
- RequestContextBase.cs
- WorkflowFileItem.cs
- _Rfc2616CacheValidators.cs
- MessageSmuggler.cs
- CodeMemberMethod.cs
- ToolStripManager.cs
- ToolboxDataAttribute.cs
- StringFormat.cs
- SrgsElement.cs
- TextReader.cs
- CallbackValidator.cs
- ItemsControlAutomationPeer.cs
- SqlFlattener.cs
- BitmapVisualManager.cs
- BindingListCollectionView.cs
- MultipartIdentifier.cs
- SR.cs
- ObjectManager.cs
- TargetPerspective.cs
- TripleDESCryptoServiceProvider.cs
- HuffModule.cs
- InputScope.cs
- IIS7ConfigurationLoader.cs
- Expressions.cs
- WebBrowserEvent.cs
- OleDbSchemaGuid.cs
- SecurityUniqueId.cs
- AnimatedTypeHelpers.cs
- StrokeSerializer.cs
- Native.cs
- SafeIUnknown.cs
- TdsParserSessionPool.cs
- MultiSelector.cs
- DataGridPagerStyle.cs
- MergePropertyDescriptor.cs
- COM2IProvidePropertyBuilderHandler.cs
- GorillaCodec.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- Certificate.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- FormCollection.cs
- DBParameter.cs
- Expression.DebuggerProxy.cs
- WindowsListView.cs
- DocumentXPathNavigator.cs
- _HeaderInfoTable.cs
- XNodeNavigator.cs
- ExtendedProperty.cs
- ViewKeyConstraint.cs
- Wizard.cs
- SafePointer.cs
- SqlMethodAttribute.cs
- ExpressionEditorAttribute.cs
- OleDbFactory.cs
- WindowsGraphics2.cs
- ListenerSessionConnection.cs
- DocumentViewerBaseAutomationPeer.cs
- XpsFilter.cs
- WindowsTreeView.cs
- IndexerNameAttribute.cs
- KoreanCalendar.cs
- ServiceOperationHelpers.cs
- OwnerDrawPropertyBag.cs
- ToolStripTextBox.cs
- PackageDigitalSignature.cs
- InputGestureCollection.cs
- SoapRpcServiceAttribute.cs
- NavigationEventArgs.cs
- RIPEMD160Managed.cs
- InternalConfigSettingsFactory.cs
- GridEntryCollection.cs
- PolicyDesigner.cs
- ZeroOpNode.cs
- HttpCookieCollection.cs
- DataGridViewRowCancelEventArgs.cs
- ApplicationDirectoryMembershipCondition.cs
- PropertyNames.cs
- DashStyle.cs
- MailAddress.cs
- PersianCalendar.cs
- RegionData.cs
- KoreanCalendar.cs
- DbTransaction.cs
- MarkupWriter.cs
- XmlSchemaObjectTable.cs
- SqlDependency.cs