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
- InfoCardTraceRecord.cs
- BufferedStream.cs
- TransformDescriptor.cs
- ColorConverter.cs
- AppModelKnownContentFactory.cs
- CellQuery.cs
- HttpHandler.cs
- EntityContainer.cs
- DbConnectionStringBuilder.cs
- GridViewDeleteEventArgs.cs
- MSAAEventDispatcher.cs
- TextElementCollection.cs
- ResourceDictionary.cs
- _TimerThread.cs
- TimeZone.cs
- RegexCharClass.cs
- Activation.cs
- ScrollBar.cs
- ImageFormat.cs
- Rotation3DKeyFrameCollection.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- RTLAwareMessageBox.cs
- CodeTypeParameter.cs
- SerialPinChanges.cs
- WindowsListViewScroll.cs
- CorrelationTokenTypeConvertor.cs
- VisualBrush.cs
- RefType.cs
- XmlMtomWriter.cs
- PropertyMappingExceptionEventArgs.cs
- util.cs
- ReadOnlyAttribute.cs
- DocumentXPathNavigator.cs
- CornerRadius.cs
- StubHelpers.cs
- Control.cs
- ListControlDataBindingHandler.cs
- ListViewItemEventArgs.cs
- TextWriterTraceListener.cs
- HtmlGenericControl.cs
- _BaseOverlappedAsyncResult.cs
- StreamWithDictionary.cs
- grammarelement.cs
- PropertyPath.cs
- FileAccessException.cs
- WpfSharedBamlSchemaContext.cs
- EntityDataSourceChangedEventArgs.cs
- ToolBarOverflowPanel.cs
- StructuralCache.cs
- AsymmetricSecurityProtocolFactory.cs
- IisTraceWebEventProvider.cs
- HostedImpersonationContext.cs
- TransformerConfigurationWizardBase.cs
- ClientSettingsProvider.cs
- DbConnectionInternal.cs
- HandleRef.cs
- ByteRangeDownloader.cs
- UiaCoreTypesApi.cs
- Msmq4PoisonHandler.cs
- IDReferencePropertyAttribute.cs
- SortFieldComparer.cs
- UidManager.cs
- NullableIntMinMaxAggregationOperator.cs
- CssTextWriter.cs
- StringFormat.cs
- DayRenderEvent.cs
- MenuAutomationPeer.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- SplitterEvent.cs
- ComponentConverter.cs
- SqlConnectionManager.cs
- GenerateScriptTypeAttribute.cs
- ContextStaticAttribute.cs
- MouseGesture.cs
- TreeViewItemAutomationPeer.cs
- ReflectPropertyDescriptor.cs
- Crc32Helper.cs
- CompilationLock.cs
- DNS.cs
- BigIntegerStorage.cs
- DrawingBrush.cs
- Matrix3DStack.cs
- GridViewEditEventArgs.cs
- NameSpaceEvent.cs
- ByteStack.cs
- DataGridItemEventArgs.cs
- ManifestResourceInfo.cs
- ConcurrentQueue.cs
- DataSetViewSchema.cs
- BinaryWriter.cs
- MatchingStyle.cs
- XmlSubtreeReader.cs
- WebBrowserUriTypeConverter.cs
- Object.cs
- ChainOfDependencies.cs
- DocumentPageView.cs
- Pipe.cs
- TileBrush.cs
- brushes.cs
- IApplicationTrustManager.cs