Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // 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
- ServerIdentity.cs
- FileInfo.cs
- SqlComparer.cs
- DataGridViewImageCell.cs
- Stack.cs
- PropertyGridEditorPart.cs
- RoleGroupCollection.cs
- MiniMapControl.xaml.cs
- SqlTrackingService.cs
- Token.cs
- WindowsSolidBrush.cs
- XmlBoundElement.cs
- SelectionWordBreaker.cs
- ManifestResourceInfo.cs
- UriTemplateTable.cs
- FileDialog_Vista.cs
- SchemaCollectionCompiler.cs
- SafeProcessHandle.cs
- ObjectStateManager.cs
- RegionData.cs
- RtfControlWordInfo.cs
- ListViewUpdatedEventArgs.cs
- CodeIdentifier.cs
- DashStyle.cs
- SapiAttributeParser.cs
- DetailsViewUpdatedEventArgs.cs
- BStrWrapper.cs
- PeerNearMe.cs
- HostingEnvironmentSection.cs
- RegionIterator.cs
- UnknownWrapper.cs
- GridViewRowEventArgs.cs
- ExtenderProvidedPropertyAttribute.cs
- BitmapCacheBrush.cs
- CopyAction.cs
- BamlRecordReader.cs
- ZipArchive.cs
- XmlAttributeAttribute.cs
- PriorityItem.cs
- CaseStatementSlot.cs
- OdbcInfoMessageEvent.cs
- HttpProfileBase.cs
- _SSPISessionCache.cs
- FlowDocumentReader.cs
- HttpHandlerActionCollection.cs
- XmlValueConverter.cs
- ShapingWorkspace.cs
- util.cs
- SubtreeProcessor.cs
- SecondaryIndexDefinition.cs
- Function.cs
- GB18030Encoding.cs
- OutputBuffer.cs
- MenuCommand.cs
- nulltextnavigator.cs
- HttpCacheVary.cs
- DesignerAttribute.cs
- IISUnsafeMethods.cs
- CurrentChangedEventManager.cs
- Splitter.cs
- XMLUtil.cs
- Context.cs
- SQlBooleanStorage.cs
- TCPListener.cs
- AnchoredBlock.cs
- ListSortDescription.cs
- XmlSerializableServices.cs
- TreeWalker.cs
- GregorianCalendar.cs
- RuntimeConfigurationRecord.cs
- ClientApiGenerator.cs
- WbmpConverter.cs
- IdentityModelStringsVersion1.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- XmlEntityReference.cs
- ReturnValue.cs
- PlacementWorkspace.cs
- ZipIOLocalFileBlock.cs
- InkCanvas.cs
- PackageRelationshipSelector.cs
- ComponentCommands.cs
- QueuePathEditor.cs
- WebBrowserNavigatingEventHandler.cs
- DynamicDataRoute.cs
- input.cs
- FontDialog.cs
- FeatureManager.cs
- HttpStreamMessage.cs
- GraphicsContext.cs
- GridViewDeletedEventArgs.cs
- UICuesEvent.cs
- MailHeaderInfo.cs
- BaseEntityWrapper.cs
- MetabaseSettingsIis7.cs
- BuildProviderAppliesToAttribute.cs
- basenumberconverter.cs
- DataGridViewCellParsingEventArgs.cs
- CompoundFileIOPermission.cs
- StreamReader.cs
- PrintDialogDesigner.cs