Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CustomValidator.cs
- TransformerTypeCollection.cs
- ButtonBaseAdapter.cs
- _NativeSSPI.cs
- SelectionGlyphBase.cs
- StateWorkerRequest.cs
- WebPartActionVerb.cs
- Vector3dCollection.cs
- Style.cs
- TdsValueSetter.cs
- SqlCrossApplyToCrossJoin.cs
- ScriptResourceHandler.cs
- EnumValAlphaComparer.cs
- SiteMap.cs
- TemplatedAdorner.cs
- DbProviderFactoriesConfigurationHandler.cs
- DesignerAttribute.cs
- SqlError.cs
- X509CertificateValidator.cs
- DependencyObjectProvider.cs
- CompilerLocalReference.cs
- RegexGroup.cs
- SynchronizedDisposablePool.cs
- PrintingPermission.cs
- CharacterBufferReference.cs
- AssemblyInfo.cs
- CollectionConverter.cs
- TrimSurroundingWhitespaceAttribute.cs
- ConstrainedDataObject.cs
- ListItemCollection.cs
- CodeGenHelper.cs
- ColorMap.cs
- XmlSchemaSimpleTypeList.cs
- SrgsGrammar.cs
- Assembly.cs
- FacetChecker.cs
- WorkflowTimerService.cs
- Choices.cs
- figurelengthconverter.cs
- MessageBox.cs
- MaskedTextBox.cs
- _Events.cs
- PrivateFontCollection.cs
- ExceptionHelpers.cs
- ZoneMembershipCondition.cs
- DispatchChannelSink.cs
- Point3DAnimationUsingKeyFrames.cs
- StyleXamlTreeBuilder.cs
- RadioButton.cs
- ArglessEventHandlerProxy.cs
- Rule.cs
- BitmapEffect.cs
- DirtyTextRange.cs
- AuthenticationService.cs
- SourceChangedEventArgs.cs
- DefaultEvaluationContext.cs
- AccessibleObject.cs
- Evidence.cs
- SqlGatherConsumedAliases.cs
- ListViewGroupConverter.cs
- ResourceExpressionEditorSheet.cs
- Queue.cs
- ScriptingJsonSerializationSection.cs
- GroupDescription.cs
- XmlReflectionMember.cs
- FunctionQuery.cs
- ColumnMap.cs
- EventTrigger.cs
- DebugView.cs
- EmbeddedMailObject.cs
- DataGridViewBand.cs
- ArgumentValidation.cs
- ImagingCache.cs
- WSMessageEncoding.cs
- SiteMapPath.cs
- NoPersistScope.cs
- Helper.cs
- ReaderWriterLock.cs
- HttpCacheVaryByContentEncodings.cs
- XamlClipboardData.cs
- RegexWorker.cs
- ColorConvertedBitmap.cs
- Figure.cs
- NativeMethods.cs
- PolyLineSegmentFigureLogic.cs
- mda.cs
- XmlLanguage.cs
- IntSecurity.cs
- ProbeDuplexCD1AsyncResult.cs
- InteropAutomationProvider.cs
- XslCompiledTransform.cs
- ContainerActivationHelper.cs
- PreservationFileReader.cs
- UrlParameterWriter.cs
- TransformPatternIdentifiers.cs
- FormViewCommandEventArgs.cs
- DataBoundControlHelper.cs
- SqlException.cs
- NameNode.cs
- CodeTypeMemberCollection.cs