Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / AddingNewEventArgs.cs / 1305376 / 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
- HttpCapabilitiesSectionHandler.cs
- BinaryEditor.cs
- PageParser.cs
- FastEncoder.cs
- DisposableCollectionWrapper.cs
- SwitchElementsCollection.cs
- StreamingContext.cs
- HMACSHA256.cs
- ListViewGroup.cs
- CatalogZone.cs
- EnterpriseServicesHelper.cs
- XPathParser.cs
- UriScheme.cs
- RegionInfo.cs
- shaper.cs
- OperationCanceledException.cs
- ServiceSettingsResponseInfo.cs
- AdornedElementPlaceholder.cs
- CachedPathData.cs
- WebPart.cs
- NestedContainer.cs
- QilList.cs
- TimeSpanFormat.cs
- CookieProtection.cs
- WebBrowser.cs
- AssociatedControlConverter.cs
- BuildProvider.cs
- RequestCachePolicyConverter.cs
- TraceHandlerErrorFormatter.cs
- basecomparevalidator.cs
- DbParameterCollection.cs
- ObjectItemLoadingSessionData.cs
- PlatformNotSupportedException.cs
- Wildcard.cs
- LayoutTableCell.cs
- XamlClipboardData.cs
- MachinePropertyVariants.cs
- PropertyGeneratedEventArgs.cs
- WebPartConnection.cs
- StringComparer.cs
- TdsRecordBufferSetter.cs
- TreeNodeCollectionEditorDialog.cs
- CaseCqlBlock.cs
- ObjectFullSpanRewriter.cs
- ImageListUtils.cs
- FormClosedEvent.cs
- WSSecureConversationFeb2005.cs
- Int16AnimationUsingKeyFrames.cs
- SchemaCompiler.cs
- ListDictionaryInternal.cs
- SecurityDescriptor.cs
- WindowsClientElement.cs
- AttributeProviderAttribute.cs
- Span.cs
- MonthCalendar.cs
- ImpersonationContext.cs
- CompositionTarget.cs
- NetworkStream.cs
- SamlAttributeStatement.cs
- Error.cs
- ImageListDesigner.cs
- WorkflowInstanceExtensionCollection.cs
- RightsManagementManager.cs
- SoapAttributeAttribute.cs
- FormDocumentDesigner.cs
- QueryCursorEventArgs.cs
- Substitution.cs
- InternalsVisibleToAttribute.cs
- UICuesEvent.cs
- AuthenticationModulesSection.cs
- DataViewManagerListItemTypeDescriptor.cs
- ScriptingWebServicesSectionGroup.cs
- SafeArrayTypeMismatchException.cs
- TextContainerHelper.cs
- FSWPathEditor.cs
- MultiAsyncResult.cs
- GlyphCache.cs
- SQLBytes.cs
- ApplyHostConfigurationBehavior.cs
- _LocalDataStore.cs
- PingOptions.cs
- FixUpCollection.cs
- ObjectIDGenerator.cs
- EqualityComparer.cs
- ArgIterator.cs
- SafeSecurityHandles.cs
- RuleInfoComparer.cs
- HelpKeywordAttribute.cs
- SerializationObjectManager.cs
- HttpApplicationStateWrapper.cs
- ReadOnlyCollection.cs
- SectionInformation.cs
- Matrix3DValueSerializer.cs
- TableRow.cs
- DataGridPageChangedEventArgs.cs
- ellipse.cs
- EpmCustomContentWriterNodeData.cs
- HttpClientChannel.cs
- RetrieveVirtualItemEventArgs.cs
- Span.cs