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
- StrokeRenderer.cs
- QueryOutputWriter.cs
- XmlDataLoader.cs
- MouseWheelEventArgs.cs
- Pkcs7Recipient.cs
- DataGridViewElement.cs
- WindowsPen.cs
- KeyFrames.cs
- SelectionRangeConverter.cs
- XmlLanguage.cs
- TranslateTransform.cs
- DynamicPropertyHolder.cs
- ViewKeyConstraint.cs
- TextContainer.cs
- _UriSyntax.cs
- DefinitionUpdate.cs
- SatelliteContractVersionAttribute.cs
- AsynchronousChannel.cs
- Font.cs
- WorkflowElementDialog.cs
- SuppressIldasmAttribute.cs
- ToolStripPanelRenderEventArgs.cs
- WpfKnownMember.cs
- EntityAdapter.cs
- RoleBoolean.cs
- HorizontalAlignConverter.cs
- DataObjectSettingDataEventArgs.cs
- CompilerGeneratedAttribute.cs
- WebBrowser.cs
- PeerCollaboration.cs
- RectangleGeometry.cs
- CommonGetThemePartSize.cs
- InternalResources.cs
- ProxyGenerator.cs
- DataGridItemCollection.cs
- QueryStringHandler.cs
- BuildProviderAppliesToAttribute.cs
- ParserStreamGeometryContext.cs
- FixedPageProcessor.cs
- ClientUtils.cs
- PropertySourceInfo.cs
- EntityProviderServices.cs
- ResourceSetExpression.cs
- UseLicense.cs
- Vector3D.cs
- SuppressIldasmAttribute.cs
- SmiSettersStream.cs
- WindowsFont.cs
- TransformGroup.cs
- NumericUpDownAccelerationCollection.cs
- DataGridItemCollection.cs
- RuntimeArgumentHandle.cs
- TdsParserHelperClasses.cs
- RemotingException.cs
- BindingContext.cs
- ReadOnlyDictionary.cs
- CompModSwitches.cs
- AdapterUtil.cs
- NumberFormatInfo.cs
- AsyncOperationManager.cs
- SqlDataAdapter.cs
- AjaxFrameworkAssemblyAttribute.cs
- ResourcesChangeInfo.cs
- NameNode.cs
- _AuthenticationState.cs
- StringValidator.cs
- SqlServer2KCompatibilityAnnotation.cs
- BulletChrome.cs
- SystemColors.cs
- SqlConnectionManager.cs
- WindowsScrollBarBits.cs
- EventDescriptor.cs
- Bidi.cs
- GeometryHitTestParameters.cs
- UrlRoutingHandler.cs
- RelatedImageListAttribute.cs
- DetailsViewPagerRow.cs
- XmlConvert.cs
- WebResponse.cs
- SynchronizationLockException.cs
- DispatcherProcessingDisabled.cs
- SerializationFieldInfo.cs
- PropertyNames.cs
- Header.cs
- TreeBuilder.cs
- ObjectDesignerDataSourceView.cs
- filewebrequest.cs
- ToolStripDropDownItem.cs
- SafeRightsManagementHandle.cs
- BitmapPalette.cs
- FaultFormatter.cs
- ResourceAttributes.cs
- XmlSchemaSimpleType.cs
- BitmapFrame.cs
- ExtensionQuery.cs
- ProxyHelper.cs
- RenderDataDrawingContext.cs
- FrameworkElementFactoryMarkupObject.cs
- DiagnosticTraceSource.cs
- InstrumentationTracker.cs