Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- XmlComplianceUtil.cs
- Viewport2DVisual3D.cs
- WebBrowserProgressChangedEventHandler.cs
- KerberosSecurityTokenProvider.cs
- BoolExpressionVisitors.cs
- CancelEventArgs.cs
- __ConsoleStream.cs
- DataBindingCollection.cs
- ThemeDirectoryCompiler.cs
- XPathNodeHelper.cs
- DataGridPreparingCellForEditEventArgs.cs
- Verify.cs
- ReadOnlyPropertyMetadata.cs
- MetadataArtifactLoaderComposite.cs
- SafeNativeMethods.cs
- SimpleBitVector32.cs
- SettingsBase.cs
- PipelineDeploymentState.cs
- PageParserFilter.cs
- IndentedWriter.cs
- RawStylusActions.cs
- _Semaphore.cs
- LayoutEvent.cs
- BatchStream.cs
- WinFormsUtils.cs
- InstancePersistence.cs
- CompositeCollectionView.cs
- FontStretchConverter.cs
- SqlStatistics.cs
- SendKeys.cs
- HtmlTernaryTree.cs
- ColorMatrix.cs
- GridViewHeaderRowPresenter.cs
- EntityModelBuildProvider.cs
- PerformanceCounterLib.cs
- RightsManagementErrorHandler.cs
- DPCustomTypeDescriptor.cs
- PropertyCondition.cs
- MemberHolder.cs
- Message.cs
- HandleCollector.cs
- TextRange.cs
- X509ScopedServiceCertificateElement.cs
- CSharpCodeProvider.cs
- DescendantBaseQuery.cs
- GetPageNumberCompletedEventArgs.cs
- AuthorizationRuleCollection.cs
- TextDpi.cs
- OledbConnectionStringbuilder.cs
- HwndTarget.cs
- ControlFilterExpression.cs
- TextChangedEventArgs.cs
- ProcessingInstructionAction.cs
- ControlBuilder.cs
- MimePart.cs
- SharedHttpTransportManager.cs
- RSACryptoServiceProvider.cs
- SoapInteropTypes.cs
- TextEncodedRawTextWriter.cs
- WindowsGraphics2.cs
- sqlcontext.cs
- RTTypeWrapper.cs
- DrawingBrush.cs
- ApplyImportsAction.cs
- LocalizabilityAttribute.cs
- TerminatorSinks.cs
- QueryContinueDragEvent.cs
- EmissiveMaterial.cs
- PenCursorManager.cs
- RegexWorker.cs
- ExitEventArgs.cs
- UpdatePanelTriggerCollection.cs
- CodeAttributeArgumentCollection.cs
- MaskInputRejectedEventArgs.cs
- CachedFontFamily.cs
- SqlClientMetaDataCollectionNames.cs
- SmiSettersStream.cs
- TextComposition.cs
- FastEncoderStatics.cs
- DesignerCommandSet.cs
- TextRunCache.cs
- xml.cs
- Query.cs
- RadioButtonStandardAdapter.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- NodeLabelEditEvent.cs
- RequestDescription.cs
- SizeF.cs
- StyleSelector.cs
- ConsoleTraceListener.cs
- EncodingDataItem.cs
- HttpCapabilitiesSectionHandler.cs
- RectAnimationBase.cs
- UmAlQuraCalendar.cs
- TlsnegoTokenAuthenticator.cs
- AppDomainUnloadedException.cs
- LostFocusEventManager.cs
- VarRemapper.cs
- LexicalChunk.cs
- SafeTokenHandle.cs