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
- COM2Enum.cs
- SmiEventSink.cs
- DecimalAnimationUsingKeyFrames.cs
- LicenseContext.cs
- ToolStripMenuItem.cs
- FormViewDeleteEventArgs.cs
- Point3DIndependentAnimationStorage.cs
- NamedServiceModelExtensionCollectionElement.cs
- FixUpCollection.cs
- PerfService.cs
- XmlAtomErrorReader.cs
- WsdlBuildProvider.cs
- TemplateControlCodeDomTreeGenerator.cs
- SymmetricKeyWrap.cs
- COM2ComponentEditor.cs
- ArrangedElementCollection.cs
- StrokeNodeOperations.cs
- DynamicRouteExpression.cs
- InheritanceRules.cs
- MultiPropertyDescriptorGridEntry.cs
- ResourceReferenceExpressionConverter.cs
- ColumnCollection.cs
- WebServiceClientProxyGenerator.cs
- ApplicationTrust.cs
- TargetControlTypeCache.cs
- XmlAggregates.cs
- DocumentOrderQuery.cs
- PictureBoxDesigner.cs
- DefaultMemberAttribute.cs
- TimeoutValidationAttribute.cs
- SystemNetworkInterface.cs
- TimeSpanConverter.cs
- UIPermission.cs
- MDIClient.cs
- NativeMethods.cs
- WindowsStreamSecurityUpgradeProvider.cs
- ViewCellRelation.cs
- CodeSnippetCompileUnit.cs
- OleDbPropertySetGuid.cs
- ParserHooks.cs
- XmlSchemaInferenceException.cs
- XmlMtomReader.cs
- Hash.cs
- Parser.cs
- versioninfo.cs
- BuildProvidersCompiler.cs
- FieldMetadata.cs
- HttpPostedFile.cs
- StateRuntime.cs
- AutomationPeer.cs
- Timeline.cs
- ControlPropertyNameConverter.cs
- DataFormats.cs
- OleTxTransactionInfo.cs
- Process.cs
- followingquery.cs
- ToolStripSplitButton.cs
- BitmapEffectRenderDataResource.cs
- ListViewSortEventArgs.cs
- FrameworkElementAutomationPeer.cs
- WizardForm.cs
- LocalizableResourceBuilder.cs
- FontEditor.cs
- SelectionWordBreaker.cs
- ChooseAction.cs
- CallbackValidator.cs
- SystemTcpConnection.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- MemberProjectionIndex.cs
- HtmlCalendarAdapter.cs
- Tile.cs
- _Win32.cs
- xml.cs
- ColorConvertedBitmap.cs
- SourceFilter.cs
- MenuAdapter.cs
- SqlConnection.cs
- MgmtConfigurationRecord.cs
- GridViewColumnHeader.cs
- LifetimeServices.cs
- Helpers.cs
- OleDbFactory.cs
- TileModeValidation.cs
- PageClientProxyGenerator.cs
- CounterSample.cs
- PropertyGridView.cs
- BasicViewGenerator.cs
- EncryptedPackageFilter.cs
- cookie.cs
- XmlSchemaCompilationSettings.cs
- ProtectedConfigurationSection.cs
- ThreadNeutralSemaphore.cs
- DataGridRowClipboardEventArgs.cs
- TypedDataSourceCodeGenerator.cs
- ChangeNode.cs
- TimeZone.cs
- MetadataUtilsSmi.cs
- HeaderUtility.cs
- Substitution.cs
- CompiledRegexRunner.cs