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
- ExpandSegmentCollection.cs
- StorageComplexTypeMapping.cs
- BitmapEffectCollection.cs
- StartUpEventArgs.cs
- WebControl.cs
- WebScriptServiceHostFactory.cs
- IpcServerChannel.cs
- SessionStateUtil.cs
- ChameleonKey.cs
- XmlAnyElementAttribute.cs
- AnnotationResourceChangedEventArgs.cs
- IsolatedStorage.cs
- ImageSourceValueSerializer.cs
- SqlInternalConnection.cs
- SecurityState.cs
- ServiceChannelProxy.cs
- SchemaMapping.cs
- CommonDialog.cs
- xdrvalidator.cs
- XmlBaseWriter.cs
- Roles.cs
- TextRangeEditTables.cs
- ModelVisual3D.cs
- ServiceSecurityAuditBehavior.cs
- Missing.cs
- AssemblyUtil.cs
- PlanCompilerUtil.cs
- ClientTargetSection.cs
- HMACSHA1.cs
- StateMachine.cs
- SafeFindHandle.cs
- ApplicationException.cs
- TextMarkerSource.cs
- AppDomainCompilerProxy.cs
- Size.cs
- StateMachineWorkflowInstance.cs
- TableProvider.cs
- TagMapCollection.cs
- WebBaseEventKeyComparer.cs
- RelationshipDetailsCollection.cs
- MemberRelationshipService.cs
- TreeNode.cs
- TextRange.cs
- SimpleMailWebEventProvider.cs
- RegistryPermission.cs
- Keyboard.cs
- BeginStoryboard.cs
- GridViewHeaderRowPresenter.cs
- PkcsUtils.cs
- CodeAttributeDeclaration.cs
- ChannelToken.cs
- MsmqNonTransactedPoisonHandler.cs
- CornerRadiusConverter.cs
- ToolBarPanel.cs
- EasingFunctionBase.cs
- LifetimeServices.cs
- ColumnClickEvent.cs
- InputBinder.cs
- SessionStateModule.cs
- ParameterCollection.cs
- SqlServer2KCompatibilityAnnotation.cs
- columnmapfactory.cs
- String.cs
- SlipBehavior.cs
- cookiecontainer.cs
- DataGridViewComboBoxColumn.cs
- SqlClientPermission.cs
- Highlights.cs
- WebPartConnectionCollection.cs
- MultiTrigger.cs
- ApplicationDirectory.cs
- FontDialog.cs
- SizeAnimationBase.cs
- ViewGenResults.cs
- MessageDecoder.cs
- DefaultPropertiesToSend.cs
- ExtensionFile.cs
- ObjectStateFormatter.cs
- TdsParserSessionPool.cs
- OledbConnectionStringbuilder.cs
- BitmapImage.cs
- TreeViewImageKeyConverter.cs
- ParagraphResult.cs
- SerTrace.cs
- QueuePropertyVariants.cs
- HealthMonitoringSection.cs
- TableHeaderCell.cs
- SettingsProviderCollection.cs
- ConsumerConnectionPointCollection.cs
- FusionWrap.cs
- Enumerable.cs
- WinFormsUtils.cs
- AppearanceEditorPart.cs
- KeyValueInternalCollection.cs
- FormView.cs
- SHA256.cs
- Quaternion.cs
- KnownBoxes.cs
- ModelUIElement3D.cs
- CngProperty.cs