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
- MethodInfo.cs
- EtwTrace.cs
- WindowsFont.cs
- AutoGeneratedFieldProperties.cs
- DefaultAutoFieldGenerator.cs
- XamlStyleSerializer.cs
- ToolStripMenuItem.cs
- TableCell.cs
- _TimerThread.cs
- Figure.cs
- WebPartEditorApplyVerb.cs
- SQLCharsStorage.cs
- ELinqQueryState.cs
- COMException.cs
- TaskCanceledException.cs
- ComponentGlyph.cs
- ConsumerConnectionPointCollection.cs
- ConfigurationManagerHelper.cs
- SignatureDescription.cs
- Brushes.cs
- EpmContentSerializerBase.cs
- HostingPreferredMapPath.cs
- DropShadowBitmapEffect.cs
- OutgoingWebRequestContext.cs
- MarkupExtensionSerializer.cs
- GB18030Encoding.cs
- ClientSettings.cs
- XsdCachingReader.cs
- ScrollBar.cs
- CompositeKey.cs
- TextLineResult.cs
- Interlocked.cs
- PocoEntityKeyStrategy.cs
- DefaultSection.cs
- TimeSpanStorage.cs
- WebEventTraceProvider.cs
- RenderTargetBitmap.cs
- WebPartActionVerb.cs
- HandlerWithFactory.cs
- InputScope.cs
- StaticResourceExtension.cs
- BinaryCommonClasses.cs
- WebContext.cs
- CategoryAttribute.cs
- IntegerCollectionEditor.cs
- Registry.cs
- QualificationDataAttribute.cs
- StructuralType.cs
- _ConnectionGroup.cs
- XamlGridLengthSerializer.cs
- WindowsScroll.cs
- ConfigurationSection.cs
- RTLAwareMessageBox.cs
- InlineUIContainer.cs
- SynchronizedInputProviderWrapper.cs
- ToolStripRenderer.cs
- UxThemeWrapper.cs
- TabletDevice.cs
- ResourceAssociationTypeEnd.cs
- TypeListConverter.cs
- ObjectDataSourceMethodEventArgs.cs
- AutomationEventArgs.cs
- LinearKeyFrames.cs
- OutputCacheSettings.cs
- DataGridViewCellPaintingEventArgs.cs
- StorageMappingItemLoader.cs
- XmlEntity.cs
- WizardStepBase.cs
- EntityDataSourceContextDisposingEventArgs.cs
- ConnectionStringsSection.cs
- Evidence.cs
- DoubleLinkList.cs
- ElementUtil.cs
- XappLauncher.cs
- ListViewDataItem.cs
- WebPartEditorOkVerb.cs
- Parsers.cs
- SafeHandles.cs
- WizardPanel.cs
- Transform3D.cs
- SqlDataSourceStatusEventArgs.cs
- listitem.cs
- Typography.cs
- HtmlTableRowCollection.cs
- GeneratedCodeAttribute.cs
- Knowncolors.cs
- RenderContext.cs
- OdbcConnectionOpen.cs
- MaterialGroup.cs
- LocalizationParserHooks.cs
- AttributeSetAction.cs
- CodeThrowExceptionStatement.cs
- Matrix.cs
- sortedlist.cs
- BitmapEffect.cs
- FontStyleConverter.cs
- ApplicationServicesHostFactory.cs
- ValidationHelper.cs
- TraceFilter.cs
- ExpressionPrefixAttribute.cs