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
- CompiledQueryCacheEntry.cs
- XmlSchemaComplexContentRestriction.cs
- Or.cs
- MethodBuilder.cs
- RadioButton.cs
- ImageDesigner.cs
- ScrollProviderWrapper.cs
- GrammarBuilderPhrase.cs
- FullTextState.cs
- DataPointer.cs
- ChooseAction.cs
- X509CertificateCollection.cs
- ListBoxItemWrapperAutomationPeer.cs
- MenuItemBindingCollection.cs
- Crc32.cs
- PeerPresenceInfo.cs
- DurableRuntimeValidator.cs
- Color.cs
- Win32MouseDevice.cs
- DrawListViewSubItemEventArgs.cs
- KnownColorTable.cs
- CheckoutException.cs
- infer.cs
- TransactionManager.cs
- AuthenticationService.cs
- DataErrorValidationRule.cs
- _BufferOffsetSize.cs
- DynamicField.cs
- _Events.cs
- SectionRecord.cs
- DataControlButton.cs
- QilGenerator.cs
- TextOptionsInternal.cs
- TagPrefixAttribute.cs
- METAHEADER.cs
- SizeConverter.cs
- ColorInterpolationModeValidation.cs
- DataGridColumn.cs
- BinaryCommonClasses.cs
- PasswordDeriveBytes.cs
- OleCmdHelper.cs
- HeaderLabel.cs
- ConfigXmlComment.cs
- QueryOutputWriter.cs
- WhitespaceRuleReader.cs
- Point3DCollection.cs
- PaginationProgressEventArgs.cs
- StreamingContext.cs
- StorageEntityContainerMapping.cs
- Translator.cs
- RealProxy.cs
- ValidationPropertyAttribute.cs
- ForwardPositionQuery.cs
- ACE.cs
- KeyValueConfigurationElement.cs
- PaintEvent.cs
- X509Utils.cs
- ResolvedKeyFrameEntry.cs
- CrossSiteScriptingValidation.cs
- TemplateBindingExpression.cs
- HttpSessionStateBase.cs
- SimpleHandlerBuildProvider.cs
- ComponentDispatcher.cs
- PeerApplicationLaunchInfo.cs
- IgnoreFlushAndCloseStream.cs
- XmlJsonReader.cs
- COM2Enum.cs
- ValueTable.cs
- XpsFontSubsetter.cs
- TileBrush.cs
- GenericUriParser.cs
- DbDataSourceEnumerator.cs
- IsolatedStorage.cs
- Crc32.cs
- AxisAngleRotation3D.cs
- WrappedIUnknown.cs
- Stylesheet.cs
- FrameworkContextData.cs
- PhysicalFontFamily.cs
- MenuItemBindingCollection.cs
- RegisteredScript.cs
- ConversionContext.cs
- SwitchExpression.cs
- InfiniteTimeSpanConverter.cs
- NamespaceList.cs
- ProcessManager.cs
- SocketException.cs
- BitmapEffectDrawingContextWalker.cs
- log.cs
- RolePrincipal.cs
- EntityWrapper.cs
- OleDbReferenceCollection.cs
- QueryResult.cs
- ViewBase.cs
- XmlCharacterData.cs
- WaitingCursor.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Pair.cs
- mediapermission.cs
- QilTargetType.cs