Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XPathConvert.cs
- ZipIOExtraFieldZip64Element.cs
- GeneratedCodeAttribute.cs
- SafeThemeHandle.cs
- LineGeometry.cs
- ValidationHelper.cs
- _Win32.cs
- WebBrowserDesigner.cs
- Rss20FeedFormatter.cs
- BinaryWriter.cs
- UIElementCollection.cs
- ToolStripGripRenderEventArgs.cs
- DeploymentSection.cs
- CompositeFontParser.cs
- PackWebResponse.cs
- Content.cs
- WebPartCancelEventArgs.cs
- EntryPointNotFoundException.cs
- NotEqual.cs
- AbsoluteQuery.cs
- OrderingExpression.cs
- XmlSchemaSet.cs
- DoubleConverter.cs
- OdbcEnvironmentHandle.cs
- TypeContext.cs
- HandlerBase.cs
- SharedStream.cs
- WindowsListViewScroll.cs
- FileUpload.cs
- ListView.cs
- QilList.cs
- MsmqIntegrationMessagePool.cs
- PackWebRequest.cs
- InfiniteTimeSpanConverter.cs
- DataGridViewCellStyleConverter.cs
- CompressionTransform.cs
- TypeDescriptorContext.cs
- SwitchLevelAttribute.cs
- DuplicateWaitObjectException.cs
- Thickness.cs
- Util.cs
- XmlSerializerAssemblyAttribute.cs
- PersonalizationDictionary.cs
- StandardCommands.cs
- DrawingDrawingContext.cs
- ReferenceEqualityComparer.cs
- Content.cs
- Label.cs
- StringOutput.cs
- SmtpCommands.cs
- RecoverInstanceLocksCommand.cs
- AxParameterData.cs
- Pair.cs
- RowToParametersTransformer.cs
- XmlSecureResolver.cs
- CodeGotoStatement.cs
- Subtract.cs
- MulticastIPAddressInformationCollection.cs
- Label.cs
- UrlPath.cs
- UnsafeNativeMethods.cs
- PersistNameAttribute.cs
- ZeroOpNode.cs
- CustomError.cs
- HealthMonitoringSectionHelper.cs
- TypeTypeConverter.cs
- LicenseContext.cs
- PrintingPermission.cs
- SystemException.cs
- SplashScreenNativeMethods.cs
- ComponentChangedEvent.cs
- SchemaEntity.cs
- LinkUtilities.cs
- ClientTarget.cs
- QueryCacheKey.cs
- Parser.cs
- DiscardableAttribute.cs
- AnnotationResourceCollection.cs
- PropertyHelper.cs
- EdmSchemaError.cs
- ObjectTokenCategory.cs
- ComplexType.cs
- CodeThrowExceptionStatement.cs
- JsonEnumDataContract.cs
- XmlSchemaSubstitutionGroup.cs
- DocumentViewerBase.cs
- InputProcessorProfilesLoader.cs
- EventArgs.cs
- IItemProperties.cs
- PackageDigitalSignature.cs
- XmlSchemaAttribute.cs
- DataGridViewMethods.cs
- ExtendedPropertyCollection.cs
- HandlerMappingMemo.cs
- BitStream.cs
- XmlObjectSerializerReadContext.cs
- TCPListener.cs
- ContentElement.cs
- CheckBoxField.cs
- SafeCoTaskMem.cs