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
- ThrowOnMultipleAssignment.cs
- GridEntryCollection.cs
- ImageMetadata.cs
- CFStream.cs
- ParentQuery.cs
- SiteMapPath.cs
- ControlCachePolicy.cs
- XmlAttributes.cs
- HtmlEncodedRawTextWriter.cs
- ByteStack.cs
- CultureTableRecord.cs
- SamlSecurityToken.cs
- PropertyGridView.cs
- Preprocessor.cs
- Hex.cs
- SqlParameterCollection.cs
- ConfigXmlSignificantWhitespace.cs
- Token.cs
- EventRouteFactory.cs
- FieldBuilder.cs
- TileBrush.cs
- PathGradientBrush.cs
- FormCollection.cs
- ItemCollection.cs
- BehaviorEditorPart.cs
- RemoteWebConfigurationHostServer.cs
- ConfigurationErrorsException.cs
- AppDomainFactory.cs
- DateTimeSerializationSection.cs
- TextParaClient.cs
- LocatorManager.cs
- MaskedTextBox.cs
- HandleCollector.cs
- ProvidePropertyAttribute.cs
- SHA1CryptoServiceProvider.cs
- Accessible.cs
- WebPartEventArgs.cs
- XmlWellformedWriter.cs
- CreateDataSourceDialog.cs
- SmtpDigestAuthenticationModule.cs
- LiteralControl.cs
- DiagnosticTrace.cs
- SimpleHandlerBuildProvider.cs
- InputGestureCollection.cs
- MailMessageEventArgs.cs
- MetaTable.cs
- FunctionDescription.cs
- SupportsPreviewControlAttribute.cs
- AttachmentService.cs
- InvalidFilterCriteriaException.cs
- RevocationPoint.cs
- SharedPerformanceCounter.cs
- HotCommands.cs
- DataSourceHelper.cs
- XmlSchemaObjectTable.cs
- PathTooLongException.cs
- TextTreePropertyUndoUnit.cs
- MediaCommands.cs
- AttachedAnnotation.cs
- SvcMapFileLoader.cs
- SizeChangedEventArgs.cs
- InkCanvas.cs
- TableDesigner.cs
- ColorConverter.cs
- HttpClientChannel.cs
- FormViewUpdatedEventArgs.cs
- ExpressionLexer.cs
- MediaPlayer.cs
- OpCodes.cs
- XmlElement.cs
- HealthMonitoringSection.cs
- EncryptedReference.cs
- XmlSchemaIdentityConstraint.cs
- ActivityDesignerHighlighter.cs
- EpmAttributeNameBuilder.cs
- SQLSingle.cs
- PasswordRecovery.cs
- JsonGlobals.cs
- DescendantBaseQuery.cs
- UnsafeNativeMethodsCLR.cs
- TriggerCollection.cs
- HitTestResult.cs
- SchemaImporter.cs
- XmlAttributeProperties.cs
- RequestCachingSection.cs
- PropertyMap.cs
- FixedTextBuilder.cs
- MappedMetaModel.cs
- HandleExceptionArgs.cs
- HttpBufferlessInputStream.cs
- ConfigXmlText.cs
- CharKeyFrameCollection.cs
- StickyNote.cs
- PriorityChain.cs
- OleDbDataAdapter.cs
- ConfigurationConverterBase.cs
- ProfessionalColorTable.cs
- TraceProvider.cs
- Duration.cs
- PointLightBase.cs