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
- FontUnit.cs
- DataContract.cs
- DbCommandDefinition.cs
- DateTimeOffsetStorage.cs
- CodeTypeDeclarationCollection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- TreeNodeConverter.cs
- Ref.cs
- Menu.cs
- DecoratedNameAttribute.cs
- GeometryHitTestParameters.cs
- bindurihelper.cs
- ConsoleKeyInfo.cs
- BridgeDataReader.cs
- SolidColorBrush.cs
- VectorAnimation.cs
- EncryptedData.cs
- SmtpClient.cs
- Event.cs
- InvalidEnumArgumentException.cs
- DivideByZeroException.cs
- CommandExpr.cs
- MergeFilterQuery.cs
- MaskDesignerDialog.cs
- IndentTextWriter.cs
- TextChange.cs
- DataSourceProvider.cs
- XPathDocument.cs
- Region.cs
- EventMap.cs
- WorkflowInstance.cs
- AnimationLayer.cs
- KeyGestureConverter.cs
- OrderedParallelQuery.cs
- QueryStringParameter.cs
- xml.cs
- SmiContextFactory.cs
- Icon.cs
- OdbcConnectionOpen.cs
- HostingEnvironmentSection.cs
- WorkflowMarkupSerializerMapping.cs
- ApplicationException.cs
- HttpGetProtocolReflector.cs
- TemplateColumn.cs
- ItemPager.cs
- IndexedGlyphRun.cs
- AnnotationResourceCollection.cs
- CodeTypeDelegate.cs
- ContentAlignmentEditor.cs
- ellipse.cs
- ArraySegment.cs
- XmlReaderSettings.cs
- ToolConsole.cs
- ConfigXmlDocument.cs
- Timeline.cs
- DataGridItemCollection.cs
- EnumType.cs
- PrincipalPermission.cs
- SqlDataSourceCommandEventArgs.cs
- SafeTimerHandle.cs
- Nullable.cs
- SqlAggregateChecker.cs
- DataServiceClientException.cs
- EdmScalarPropertyAttribute.cs
- MaterializeFromAtom.cs
- ArraySubsetEnumerator.cs
- ModelVisual3D.cs
- HighlightVisual.cs
- PolicyManager.cs
- X509ServiceCertificateAuthenticationElement.cs
- Label.cs
- PersonalizationStateInfoCollection.cs
- RoutedCommand.cs
- XmlHierarchicalDataSourceView.cs
- Span.cs
- SortDescriptionCollection.cs
- NotFiniteNumberException.cs
- ObjectStateEntryDbDataRecord.cs
- ManagementObjectCollection.cs
- CompoundFileIOPermission.cs
- SubpageParaClient.cs
- MenuEventArgs.cs
- MatrixTransform.cs
- VersionedStream.cs
- CodePropertyReferenceExpression.cs
- ADMembershipProvider.cs
- CommonDialog.cs
- TableLayoutRowStyleCollection.cs
- FilterEventArgs.cs
- WeakReferenceKey.cs
- complextypematerializer.cs
- MarkupExtensionSerializer.cs
- NameValueFileSectionHandler.cs
- UIElementIsland.cs
- ToolboxItemCollection.cs
- ThreadPool.cs
- PropertySourceInfo.cs
- PersonalizablePropertyEntry.cs
- UTF8Encoding.cs
- FtpWebRequest.cs