Code:
/ FX-1434 / FX-1434 / 1.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
- LayoutEvent.cs
- HijriCalendar.cs
- LineBreak.cs
- SHA1.cs
- _ServiceNameStore.cs
- WebBrowser.cs
- LicenseProviderAttribute.cs
- TreeNodeCollection.cs
- ArgumentNullException.cs
- CmsInterop.cs
- DataGridViewTextBoxCell.cs
- HtmlInputPassword.cs
- HostSecurityManager.cs
- QuaternionRotation3D.cs
- AuthStoreRoleProvider.cs
- TextBox.cs
- NameSpaceEvent.cs
- AspCompat.cs
- EventPrivateKey.cs
- XmlQualifiedName.cs
- OracleLob.cs
- HttpWriter.cs
- LicFileLicenseProvider.cs
- EventProvider.cs
- DataGridViewTextBoxEditingControl.cs
- MenuRendererClassic.cs
- XhtmlBasicValidationSummaryAdapter.cs
- Image.cs
- FlowDocumentPaginator.cs
- ColorTranslator.cs
- WebPartUtil.cs
- AssemblyNameUtility.cs
- COM2ColorConverter.cs
- IdentitySection.cs
- XmlNamedNodeMap.cs
- VSWCFServiceContractGenerator.cs
- ToolStripComboBox.cs
- DependencySource.cs
- XmlILAnnotation.cs
- SecurityTokenProviderContainer.cs
- TextRangeEdit.cs
- UpdatePanelTrigger.cs
- ViewKeyConstraint.cs
- SudsParser.cs
- BindUriHelper.cs
- SetterBaseCollection.cs
- SecurityDocument.cs
- RubberbandSelector.cs
- ShimAsPublicXamlType.cs
- ColorAnimation.cs
- InternalPermissions.cs
- MsmqAppDomainProtocolHandler.cs
- DrawingGroupDrawingContext.cs
- DynamicValidatorEventArgs.cs
- SEHException.cs
- DbConnectionInternal.cs
- SelectionItemProviderWrapper.cs
- ObjectListCommandsPage.cs
- RelationshipNavigation.cs
- AssociationProvider.cs
- ForwardPositionQuery.cs
- DataTableTypeConverter.cs
- IPAddressCollection.cs
- BufferedWebEventProvider.cs
- TextRangeBase.cs
- UIElementParagraph.cs
- CodeSubDirectory.cs
- OleDbParameterCollection.cs
- XmlException.cs
- UICuesEvent.cs
- SplayTreeNode.cs
- PartManifestEntry.cs
- BaseHashHelper.cs
- WebPartEditorOkVerb.cs
- MetadataCache.cs
- ObjectDataSourceEventArgs.cs
- ColorMatrix.cs
- Debug.cs
- SocketInformation.cs
- RelationshipEnd.cs
- InternalsVisibleToAttribute.cs
- CookielessHelper.cs
- HtmlEmptyTagControlBuilder.cs
- StringUtil.cs
- SvcMapFileSerializer.cs
- UDPClient.cs
- DropSource.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- ButtonBase.cs
- Matrix3DConverter.cs
- RenderContext.cs
- JsonWriter.cs
- Message.cs
- ApplicationId.cs
- ClientUtils.cs
- HttpEncoder.cs
- FullTextLine.cs
- HtmlAnchor.cs
- CrossContextChannel.cs
- JsonUriDataContract.cs