Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / ComponentModel / AddingNewEventArgs.cs / 1305376 / 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
- EdmItemCollection.cs
- PersistChildrenAttribute.cs
- ServiceReference.cs
- ToolZoneDesigner.cs
- ProcessProtocolHandler.cs
- XmlSerializerFactory.cs
- InkCanvasSelectionAdorner.cs
- Int64Storage.cs
- EmbeddedObject.cs
- StringSource.cs
- SiteMap.cs
- TypeSystem.cs
- HostingEnvironment.cs
- MatrixStack.cs
- DocumentGridContextMenu.cs
- CompilationUtil.cs
- XmlEventCache.cs
- PermissionAttributes.cs
- RequestBringIntoViewEventArgs.cs
- TextBoxView.cs
- LogRecordSequence.cs
- FtpCachePolicyElement.cs
- SQLDateTime.cs
- ObjectTag.cs
- WindowExtensionMethods.cs
- SpStreamWrapper.cs
- MessageQueuePermissionEntry.cs
- TypeDescriptor.cs
- RegisteredExpandoAttribute.cs
- WorkflowRuntimeServiceElementCollection.cs
- RegexCompilationInfo.cs
- InkCanvas.cs
- StyleSheetComponentEditor.cs
- BamlBinaryReader.cs
- CodeMemberEvent.cs
- CheckBoxDesigner.cs
- DbReferenceCollection.cs
- DataSourceSerializationException.cs
- _DisconnectOverlappedAsyncResult.cs
- Evaluator.cs
- EntityDataSourceContainerNameItem.cs
- VerticalAlignConverter.cs
- XmlSchemaSimpleContentExtension.cs
- ContainerFilterService.cs
- ReadWriteObjectLock.cs
- SelectionPattern.cs
- DrawingImage.cs
- AssertUtility.cs
- TypeConverterMarkupExtension.cs
- FilteredAttributeCollection.cs
- OleDbConnectionInternal.cs
- DynamicArgumentDesigner.xaml.cs
- XmlSchemaAnnotated.cs
- PhotoPrintingIntent.cs
- QilVisitor.cs
- LoadedOrUnloadedOperation.cs
- X509Utils.cs
- FontWeightConverter.cs
- RSAPKCS1SignatureDeformatter.cs
- _UriSyntax.cs
- MD5.cs
- LoginUtil.cs
- SpellerError.cs
- InputLanguage.cs
- WizardPanel.cs
- InputLanguageEventArgs.cs
- CodeGeneratorOptions.cs
- PreviewPageInfo.cs
- MetadataSerializer.cs
- XmlAutoDetectWriter.cs
- FamilyTypefaceCollection.cs
- ClonableStack.cs
- ResolveNameEventArgs.cs
- XamlWriter.cs
- wgx_exports.cs
- MediaEntryAttribute.cs
- SafeNativeMethods.cs
- LassoHelper.cs
- AdornedElementPlaceholder.cs
- GradientBrush.cs
- EntityViewContainer.cs
- CodeDomConfigurationHandler.cs
- FileDetails.cs
- SelectionPatternIdentifiers.cs
- FacetValueContainer.cs
- ConfigurationConverterBase.cs
- SystemIPGlobalProperties.cs
- AssemblyInfo.cs
- SHA1Managed.cs
- OdbcParameterCollection.cs
- BitmapSource.cs
- ListBoxItemAutomationPeer.cs
- TextWriter.cs
- WebPartHelpVerb.cs
- VirtualizingPanel.cs
- ProfileEventArgs.cs
- CapabilitiesUse.cs
- ObjectStateEntry.cs
- StreamingContext.cs
- PeekCompletedEventArgs.cs