Code:
/ DotNET / DotNET / 8.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
- WebConfigurationFileMap.cs
- Hashtable.cs
- WorkflowShape.cs
- ProcessHostMapPath.cs
- DatatypeImplementation.cs
- ValidationSummary.cs
- ServiceDebugBehavior.cs
- CheckBox.cs
- BaseInfoTable.cs
- SoapFormatterSinks.cs
- CurrentTimeZone.cs
- PermissionListSet.cs
- PeerInvitationResponse.cs
- ItemCollectionEditor.cs
- TransactionManager.cs
- AssociationSetMetadata.cs
- GeometryModel3D.cs
- CompensatableSequenceActivity.cs
- CriticalFinalizerObject.cs
- Span.cs
- VarRemapper.cs
- InstanceValue.cs
- WindowsComboBox.cs
- TimeSpan.cs
- UInt32Storage.cs
- SR.cs
- RightsManagementInformation.cs
- BookmarkUndoUnit.cs
- Int32EqualityComparer.cs
- XmlStringTable.cs
- XmlSchemas.cs
- TemplateXamlParser.cs
- List.cs
- FastEncoderWindow.cs
- WebPartDisplayModeCollection.cs
- MapPathBasedVirtualPathProvider.cs
- SourceFileBuildProvider.cs
- ListenerSingletonConnectionReader.cs
- KnowledgeBase.cs
- SiteMapPath.cs
- safemediahandle.cs
- TerminateSequenceResponse.cs
- ExpressionHelper.cs
- SeparatorAutomationPeer.cs
- ClientScriptManager.cs
- safex509handles.cs
- AsymmetricSignatureDeformatter.cs
- DataList.cs
- DocumentGridPage.cs
- ScriptResourceHandler.cs
- StringPropertyBuilder.cs
- VisualBrush.cs
- SmtpFailedRecipientsException.cs
- ConstraintStruct.cs
- LinearKeyFrames.cs
- wgx_sdk_version.cs
- RotateTransform3D.cs
- ListViewSortEventArgs.cs
- DataControlLinkButton.cs
- AlternateView.cs
- Array.cs
- HttpModuleActionCollection.cs
- Substitution.cs
- Int32CAMarshaler.cs
- InfiniteIntConverter.cs
- TemplateControlBuildProvider.cs
- DisplayNameAttribute.cs
- DataTrigger.cs
- HighContrastHelper.cs
- TextRunCache.cs
- PlatformCulture.cs
- HostingEnvironmentException.cs
- HtmlShim.cs
- FormCollection.cs
- BuildProvider.cs
- GridViewSortEventArgs.cs
- DispatcherTimer.cs
- OrderedDictionaryStateHelper.cs
- FileUtil.cs
- MarginsConverter.cs
- NullableDoubleAverageAggregationOperator.cs
- StylusPointPropertyId.cs
- PeerNameRecordCollection.cs
- DialogResultConverter.cs
- XpsFilter.cs
- HtmlLink.cs
- TypeDescriptionProviderAttribute.cs
- OdbcCommand.cs
- CrossSiteScriptingValidation.cs
- UnauthorizedAccessException.cs
- SystemWebCachingSectionGroup.cs
- NetStream.cs
- CodeDomSerializationProvider.cs
- ScriptManager.cs
- TraceLevelStore.cs
- ValueUnavailableException.cs
- DuplicateWaitObjectException.cs
- IncrementalReadDecoders.cs
- Accessible.cs
- RetrieveVirtualItemEventArgs.cs