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
- QuaternionValueSerializer.cs
- EdmItemCollection.OcAssemblyCache.cs
- MethodInfo.cs
- Hyperlink.cs
- WindowsAuthenticationModule.cs
- InputLangChangeEvent.cs
- ContractsBCL.cs
- MbpInfo.cs
- DataKey.cs
- Rotation3DAnimationBase.cs
- Message.cs
- RequestStatusBarUpdateEventArgs.cs
- XmlObjectSerializerWriteContextComplex.cs
- DataControlButton.cs
- securestring.cs
- UrlMappingCollection.cs
- AccessedThroughPropertyAttribute.cs
- Operators.cs
- HTTPNotFoundHandler.cs
- ContextQuery.cs
- StrongNameKeyPair.cs
- AtomContentProperty.cs
- Point3D.cs
- DesignTableCollection.cs
- DefaultWorkflowLoaderService.cs
- EditModeSwitchButton.cs
- XmlSchemaAttributeGroupRef.cs
- ManagedFilter.cs
- SqlStream.cs
- RegularExpressionValidator.cs
- ApplicationBuildProvider.cs
- WebConfigurationHostFileChange.cs
- AttributeEmitter.cs
- XmlWriter.cs
- ContextMarshalException.cs
- HttpCookieCollection.cs
- EdmProviderManifest.cs
- InternalUserCancelledException.cs
- ControlBuilderAttribute.cs
- CharacterMetricsDictionary.cs
- UpdateEventArgs.cs
- XslAst.cs
- FrameworkElementFactoryMarkupObject.cs
- NetworkAddressChange.cs
- PeerNameResolver.cs
- StringPropertyBuilder.cs
- SecureStringHasher.cs
- wmiprovider.cs
- AppSecurityManager.cs
- CollectionConverter.cs
- TemplateControlParser.cs
- TableLayoutStyle.cs
- SerializableAttribute.cs
- TextEditorTables.cs
- DataSourceGeneratorException.cs
- ApplicationBuildProvider.cs
- DataRecordObjectView.cs
- EventEntry.cs
- VisualSerializer.cs
- TypedRowGenerator.cs
- SqlDataSourceStatusEventArgs.cs
- DataSetUtil.cs
- Switch.cs
- ProxyWebPart.cs
- Menu.cs
- EventSourceCreationData.cs
- XamlFrame.cs
- StreamReader.cs
- NegatedCellConstant.cs
- BamlResourceSerializer.cs
- CreatingCookieEventArgs.cs
- Attribute.cs
- ColorPalette.cs
- OperatingSystem.cs
- PreviewKeyDownEventArgs.cs
- OleDbCommand.cs
- SizeAnimationClockResource.cs
- GetWinFXPath.cs
- CompilerWrapper.cs
- ArrangedElementCollection.cs
- RuleSet.cs
- Int64Animation.cs
- EntityContainer.cs
- PermissionToken.cs
- CodeExpressionCollection.cs
- KeyValueInternalCollection.cs
- BufferedReadStream.cs
- AttributeSetAction.cs
- BinaryMethodMessage.cs
- _ContextAwareResult.cs
- SqlTrackingService.cs
- NameSpaceExtractor.cs
- BoolExpressionVisitors.cs
- LicenseManager.cs
- NetNamedPipeSecurityElement.cs
- ProcessInfo.cs
- LoadRetryAsyncResult.cs
- ThemeInfoAttribute.cs
- WebServiceReceiveDesigner.cs
- ActionItem.cs