Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- activationcontext.cs
- DocComment.cs
- EntitySqlException.cs
- Events.cs
- PaintValueEventArgs.cs
- InvokeGenerator.cs
- StreamGeometry.cs
- dbdatarecord.cs
- ClonableStack.cs
- UniqueIdentifierService.cs
- RtfControls.cs
- OwnerDrawPropertyBag.cs
- ConfigurationStrings.cs
- MethodMessage.cs
- ResourceDescriptionAttribute.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- WebPartConnectionsCancelVerb.cs
- FlowDocumentFormatter.cs
- XmlReader.cs
- HtmlInputSubmit.cs
- WinInet.cs
- MexNamedPipeBindingElement.cs
- XmlIlTypeHelper.cs
- XslUrlEditor.cs
- EventTask.cs
- Debug.cs
- SqlDependencyUtils.cs
- WebPartDescriptionCollection.cs
- NativeMethods.cs
- DateTimePicker.cs
- Label.cs
- RelatedImageListAttribute.cs
- RectangleGeometry.cs
- MergablePropertyAttribute.cs
- DefaultValueAttribute.cs
- GridLength.cs
- BamlLocalizableResourceKey.cs
- CategoriesDocument.cs
- ZipIOModeEnforcingStream.cs
- EventlogProvider.cs
- Vertex.cs
- UInt16Converter.cs
- Cell.cs
- IdentityModelDictionary.cs
- BuilderPropertyEntry.cs
- BindableAttribute.cs
- SmiEventSink.cs
- metrodevice.cs
- AssociationTypeEmitter.cs
- ColorTransformHelper.cs
- OperationPerformanceCounters.cs
- Rights.cs
- VersionPair.cs
- PipeStream.cs
- ConnectorEditor.cs
- CatalogZoneBase.cs
- FileUpload.cs
- WebBrowser.cs
- TaiwanLunisolarCalendar.cs
- MethodBuilderInstantiation.cs
- XPathParser.cs
- TiffBitmapDecoder.cs
- ColumnReorderedEventArgs.cs
- FrameworkElementFactory.cs
- StringUtil.cs
- WebDisplayNameAttribute.cs
- ComponentResourceManager.cs
- DataRowCollection.cs
- LineServicesCallbacks.cs
- FileCodeGroup.cs
- ImageBrush.cs
- xml.cs
- SByteStorage.cs
- DataRow.cs
- CheckBox.cs
- XmlDictionaryReaderQuotas.cs
- WCFBuildProvider.cs
- PrimitiveXmlSerializers.cs
- OdbcStatementHandle.cs
- Journal.cs
- ConsumerConnectionPointCollection.cs
- CurrentChangingEventManager.cs
- UniqueEventHelper.cs
- CommentEmitter.cs
- DataServiceProviderMethods.cs
- UrlAuthFailureHandler.cs
- GridPattern.cs
- ConstraintManager.cs
- RangeBase.cs
- OneOfElement.cs
- TextEditorTables.cs
- SortDescriptionCollection.cs
- HealthMonitoringSection.cs
- DeclarativeExpressionConditionDeclaration.cs
- WebRequestModuleElementCollection.cs
- ColumnClickEvent.cs
- XsltInput.cs
- AuthenticationConfig.cs
- DataTrigger.cs
- BrowserDefinition.cs