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
- Visual3D.cs
- ModelItemExtensions.cs
- EventManager.cs
- AdornerDecorator.cs
- StorageConditionPropertyMapping.cs
- SchemaTableOptionalColumn.cs
- DynamicDataExtensions.cs
- RevocationPoint.cs
- DBDataPermissionAttribute.cs
- Visual.cs
- ListViewDeletedEventArgs.cs
- DtdParser.cs
- manifestimages.cs
- GenericEnumerator.cs
- XmlWrappingWriter.cs
- DataSourceCache.cs
- RoleManagerSection.cs
- Control.cs
- TreeNodeCollectionEditor.cs
- Hyperlink.cs
- VerificationAttribute.cs
- SafeNativeMethods.cs
- Calendar.cs
- StandardBindingImporter.cs
- TextFindEngine.cs
- EmptyStringExpandableObjectConverter.cs
- SqlGenerator.cs
- SqlCommand.cs
- QueryableDataSourceEditData.cs
- NavigatingCancelEventArgs.cs
- RemotingServices.cs
- OutputScopeManager.cs
- UidManager.cs
- TraceContext.cs
- SafeBuffer.cs
- RegistryDataKey.cs
- DataGridTableCollection.cs
- InstanceHandleReference.cs
- MimeMapping.cs
- DataGridViewRowsRemovedEventArgs.cs
- DbConnectionStringBuilder.cs
- FrameworkPropertyMetadata.cs
- OleDbConnection.cs
- LongValidator.cs
- TrustExchangeException.cs
- ResourceExpressionBuilder.cs
- XmlSecureResolver.cs
- BaseTemplateCodeDomTreeGenerator.cs
- _ConnectionGroup.cs
- DeclarativeCatalogPart.cs
- ParameterExpression.cs
- QueryCacheEntry.cs
- SqlTriggerContext.cs
- PixelFormatConverter.cs
- UnaryQueryOperator.cs
- SQLStringStorage.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- ParseChildrenAsPropertiesAttribute.cs
- TrustManagerMoreInformation.cs
- ProgressBarHighlightConverter.cs
- CodeDOMProvider.cs
- XsltFunctions.cs
- WCFServiceClientProxyGenerator.cs
- MouseButtonEventArgs.cs
- NativeMethods.cs
- TimeStampChecker.cs
- ScanQueryOperator.cs
- ObjectParameterCollection.cs
- SqlMetaData.cs
- ResourceDictionaryCollection.cs
- XmlComment.cs
- DescriptionAttribute.cs
- WebServiceMethodData.cs
- AdRotator.cs
- HostedBindingBehavior.cs
- ScaleTransform.cs
- XsltCompileContext.cs
- ReflectionServiceProvider.cs
- TrustExchangeException.cs
- EmptyElement.cs
- ServicePoint.cs
- SqlCommand.cs
- KeyFrames.cs
- TextProperties.cs
- BinaryFormatter.cs
- TableLayoutColumnStyleCollection.cs
- AuthenticationConfig.cs
- ProfileSection.cs
- CodeVariableReferenceExpression.cs
- ISFTagAndGuidCache.cs
- _AutoWebProxyScriptEngine.cs
- HtmlInputCheckBox.cs
- ToolTip.cs
- TypeConstant.cs
- PropertyCondition.cs
- TextCompositionEventArgs.cs
- DrawingServices.cs
- IdentitySection.cs
- KeyTime.cs
- GenericEnumerator.cs