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
- SQLCharsStorage.cs
- PathTooLongException.cs
- arabicshape.cs
- XPathAncestorQuery.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- WorkflowViewElement.cs
- GridViewCommandEventArgs.cs
- IPAddress.cs
- EntityTypeEmitter.cs
- CodeNamespaceCollection.cs
- FontFamily.cs
- XmlSerializationReader.cs
- SqlPersonalizationProvider.cs
- PingReply.cs
- ListViewInsertedEventArgs.cs
- SoundPlayerAction.cs
- FileUpload.cs
- TextModifierScope.cs
- PtsContext.cs
- VisualBrush.cs
- XmlNodeChangedEventArgs.cs
- NativeMethods.cs
- BoolExpressionVisitors.cs
- BitmapPalettes.cs
- SQLChars.cs
- DecimalAnimation.cs
- URLMembershipCondition.cs
- ProfileInfo.cs
- IPipelineRuntime.cs
- DependencyPropertyKey.cs
- mediaeventshelper.cs
- BamlBinaryReader.cs
- SqlWorkflowPersistenceService.cs
- NamedPermissionSet.cs
- NumberFunctions.cs
- InternalMappingException.cs
- Vector3DIndependentAnimationStorage.cs
- XmlSerializerSection.cs
- DeviceSpecific.cs
- MatrixCamera.cs
- MobileUserControl.cs
- ViewPort3D.cs
- Serializer.cs
- StreamMarshaler.cs
- WindowsContainer.cs
- AssemblyBuilderData.cs
- _PooledStream.cs
- ErrorHandler.cs
- SqlNamer.cs
- DbCommandTree.cs
- FigureHelper.cs
- ObjectPropertyMapping.cs
- TemplateInstanceAttribute.cs
- PermissionSetEnumerator.cs
- MappingMetadataHelper.cs
- PasswordPropertyTextAttribute.cs
- CaseInsensitiveComparer.cs
- TextDecorationCollection.cs
- EntityParameterCollection.cs
- LambdaCompiler.Lambda.cs
- GridViewDeleteEventArgs.cs
- SqlFunctionAttribute.cs
- TableLayoutSettings.cs
- TextRunCacheImp.cs
- PriorityItem.cs
- DocobjHost.cs
- Trigger.cs
- TextRunTypographyProperties.cs
- XmlLinkedNode.cs
- DataStreamFromComStream.cs
- XmlSecureResolver.cs
- EndpointDesigner.cs
- SystemColors.cs
- PreviewKeyDownEventArgs.cs
- ChildDocumentBlock.cs
- RayMeshGeometry3DHitTestResult.cs
- X500Name.cs
- PatternMatcher.cs
- ToolStripStatusLabel.cs
- WebContext.cs
- TextBoxBaseDesigner.cs
- Hyperlink.cs
- XmlTextEncoder.cs
- Typeface.cs
- XsdDateTime.cs
- TextCompositionEventArgs.cs
- StateManagedCollection.cs
- MatrixAnimationUsingKeyFrames.cs
- TreeNodeStyleCollectionEditor.cs
- InternalCompensate.cs
- FontCollection.cs
- BehaviorEditorPart.cs
- DataSourceControlBuilder.cs
- TransactionFlowAttribute.cs
- DynamicActivityProperty.cs
- InternalConfigHost.cs
- CodeNamespaceCollection.cs
- MimeParameters.cs
- XPathChildIterator.cs
- ZoneLinkButton.cs