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
- LineMetrics.cs
- MeshGeometry3D.cs
- DiagnosticsConfiguration.cs
- SQLRoleProvider.cs
- DataGridViewTextBoxColumn.cs
- GenerateScriptTypeAttribute.cs
- SizeChangedEventArgs.cs
- NamedPermissionSet.cs
- ObjectTypeMapping.cs
- SystemResources.cs
- NTAccount.cs
- ActivityStatusChangeEventArgs.cs
- ResourcePool.cs
- CustomPopupPlacement.cs
- uribuilder.cs
- DataObject.cs
- PerformanceCounterPermissionEntryCollection.cs
- StringValidator.cs
- DashStyle.cs
- PropertyCollection.cs
- RequestContext.cs
- XsltException.cs
- SHA512Cng.cs
- BinaryObjectWriter.cs
- UnsafeNativeMethods.cs
- CursorConverter.cs
- XPathArrayIterator.cs
- CancellationHandlerDesigner.cs
- LayoutExceptionEventArgs.cs
- SQLStringStorage.cs
- CompiledAction.cs
- BindToObject.cs
- Identity.cs
- AlternateView.cs
- NameValueCollection.cs
- WebPartExportVerb.cs
- OutputCacheSection.cs
- FusionWrap.cs
- DataSet.cs
- LocatorGroup.cs
- NetSectionGroup.cs
- CodeVariableDeclarationStatement.cs
- TextDecoration.cs
- EffectiveValueEntry.cs
- APCustomTypeDescriptor.cs
- SecurityManager.cs
- SignatureDescription.cs
- Empty.cs
- HashCodeCombiner.cs
- DrawingServices.cs
- HeaderCollection.cs
- TextTreeObjectNode.cs
- PermissionListSet.cs
- UnsignedPublishLicense.cs
- InternalResources.cs
- DataTrigger.cs
- DbDataReader.cs
- HtmlInputText.cs
- FormClosingEvent.cs
- RelationshipEndCollection.cs
- SynthesizerStateChangedEventArgs.cs
- MailWebEventProvider.cs
- ManagementPath.cs
- BindMarkupExtensionSerializer.cs
- FontFamily.cs
- DataControlImageButton.cs
- Material.cs
- xmlsaver.cs
- WorkflowViewElement.cs
- SqlConnectionPoolProviderInfo.cs
- PassportAuthenticationModule.cs
- MailSettingsSection.cs
- DateTimeFormat.cs
- Geometry3D.cs
- Constants.cs
- EastAsianLunisolarCalendar.cs
- MetadataCache.cs
- CacheSection.cs
- MessageQueueKey.cs
- mansign.cs
- ToolStripPanelRenderEventArgs.cs
- NumberSubstitution.cs
- HGlobalSafeHandle.cs
- SystemIcons.cs
- HideDisabledControlAdapter.cs
- BackgroundFormatInfo.cs
- HandlerWithFactory.cs
- DirectoryRootQuery.cs
- ErrorTableItemStyle.cs
- IdentityVerifier.cs
- BinaryExpression.cs
- LayoutTableCell.cs
- AmbientValueAttribute.cs
- ObjectFullSpanRewriter.cs
- WindowsGraphics2.cs
- TypeUsageBuilder.cs
- WebConvert.cs
- LineGeometry.cs
- SafeNativeMethods.cs
- AutomationPropertyInfo.cs