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
- DocumentViewerConstants.cs
- GenericFlowSwitchHelper.cs
- ComponentEvent.cs
- Vector3DCollection.cs
- EncryptedType.cs
- TextTreeTextBlock.cs
- XXXOnTypeBuilderInstantiation.cs
- XmlDataSourceNodeDescriptor.cs
- SchemaImporterExtensionElementCollection.cs
- ModifierKeysValueSerializer.cs
- CompilerCollection.cs
- ResourceContainerWrapper.cs
- MultiBindingExpression.cs
- ImpersonateTokenRef.cs
- RequestQueue.cs
- InkCanvasFeedbackAdorner.cs
- ObservableCollection.cs
- MeshGeometry3D.cs
- CompatibleIComparer.cs
- RangeValidator.cs
- SchemaCollectionCompiler.cs
- WsdlBuildProvider.cs
- XmlCharType.cs
- AssemblyUtil.cs
- ResourcePool.cs
- WsiProfilesElementCollection.cs
- CompositionAdorner.cs
- FixedFindEngine.cs
- ChannelEndpointElementCollection.cs
- CacheHelper.cs
- DataRowView.cs
- MembershipValidatePasswordEventArgs.cs
- COM2ColorConverter.cs
- HttpRuntime.cs
- XamlWriter.cs
- UpdateCompiler.cs
- ClientSettingsSection.cs
- ReferencedAssembly.cs
- ResponseBodyWriter.cs
- ObjectMaterializedEventArgs.cs
- ClonableStack.cs
- PrinterUnitConvert.cs
- SplashScreenNativeMethods.cs
- MobileControlBuilder.cs
- NegatedCellConstant.cs
- ControlIdConverter.cs
- BitmapPalettes.cs
- ImageCodecInfoPrivate.cs
- EncryptedPackage.cs
- XmlTypeMapping.cs
- AudioDeviceOut.cs
- DataGridViewColumnEventArgs.cs
- DuplicateWaitObjectException.cs
- DBSchemaRow.cs
- SystemIcons.cs
- Binding.cs
- DataFormats.cs
- DSASignatureDeformatter.cs
- VerticalAlignConverter.cs
- XmlElementList.cs
- Axis.cs
- TemplateColumn.cs
- ConnectivityStatus.cs
- RegexGroup.cs
- RuntimeVariableList.cs
- RangeValidator.cs
- Popup.cs
- EpmSyndicationContentSerializer.cs
- AccessDataSource.cs
- pingexception.cs
- PageVisual.cs
- MatcherBuilder.cs
- ExceptionDetail.cs
- LogLogRecordEnumerator.cs
- SmiContextFactory.cs
- VectorCollectionConverter.cs
- DocumentReference.cs
- GreaterThan.cs
- AutoResizedEvent.cs
- AdornerDecorator.cs
- DbConnectionOptions.cs
- _DigestClient.cs
- SecurityMessageProperty.cs
- DataServices.cs
- UnsafeNativeMethods.cs
- tibetanshape.cs
- TaiwanLunisolarCalendar.cs
- AsyncResult.cs
- BamlLocalizableResourceKey.cs
- WebPartMovingEventArgs.cs
- PageContentCollection.cs
- MethodToken.cs
- InkCanvasAutomationPeer.cs
- EnumMember.cs
- DocumentViewerConstants.cs
- XmlSerializationWriter.cs
- SystemDropShadowChrome.cs
- DataSet.cs
- UriSchemeKeyedCollection.cs
- WorkflowQueuingService.cs