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
- HttpCapabilitiesBase.cs
- LoginView.cs
- LocalFileSettingsProvider.cs
- UnsafeNativeMethods.cs
- XsltSettings.cs
- PermissionListSet.cs
- SystemResourceHost.cs
- MetaData.cs
- CodeNamespaceCollection.cs
- DBAsyncResult.cs
- ControlBindingsCollection.cs
- QuestionEventArgs.cs
- DrawingBrush.cs
- ContractTypeNameCollection.cs
- UIElementCollection.cs
- WebPartConnectionsDisconnectVerb.cs
- ToolStripPanel.cs
- Funcletizer.cs
- PolyQuadraticBezierSegment.cs
- PackagePartCollection.cs
- SqlBooleanMismatchVisitor.cs
- Condition.cs
- AssemblyBuilder.cs
- HybridObjectCache.cs
- ViewLoader.cs
- PerfService.cs
- HttpCapabilitiesEvaluator.cs
- XsltLoader.cs
- NonVisualControlAttribute.cs
- ErrorWrapper.cs
- RegionInfo.cs
- XmlSchemaExporter.cs
- HostingEnvironment.cs
- WorkflowRuntime.cs
- DiagnosticsConfiguration.cs
- SpecialTypeDataContract.cs
- AddInControllerImpl.cs
- SpellCheck.cs
- MasterPageBuildProvider.cs
- XpsFontSubsetter.cs
- OuterProxyWrapper.cs
- OracleColumn.cs
- QuestionEventArgs.cs
- ScrollProperties.cs
- XmlSchemaGroupRef.cs
- SrgsItemList.cs
- CompModSwitches.cs
- TranslateTransform.cs
- RoutingBehavior.cs
- ByteStream.cs
- EventSetter.cs
- X509Chain.cs
- SmiContextFactory.cs
- SystemException.cs
- DataObjectFieldAttribute.cs
- WebBrowser.cs
- CompModSwitches.cs
- DbConnectionPool.cs
- ReachUIElementCollectionSerializerAsync.cs
- ObjRef.cs
- SessionStateSection.cs
- CoreSwitches.cs
- DataSetSchema.cs
- OleDbCommandBuilder.cs
- IChannel.cs
- XmlSchemaAttributeGroup.cs
- GeneralTransformGroup.cs
- CryptoKeySecurity.cs
- InputScopeManager.cs
- RuleInfoComparer.cs
- XmlSubtreeReader.cs
- XmlBinaryReader.cs
- RoleManagerModule.cs
- WeakEventManager.cs
- FormsAuthenticationUserCollection.cs
- Window.cs
- EdmValidator.cs
- CollectionBase.cs
- TraceRecord.cs
- SecurityTokenValidationException.cs
- SchemaMapping.cs
- XmlIgnoreAttribute.cs
- RtfFormatStack.cs
- InputLanguageEventArgs.cs
- StorageComplexTypeMapping.cs
- SQLInt16Storage.cs
- BamlResourceContent.cs
- TypeBrowserDialog.cs
- Exceptions.cs
- PointF.cs
- HttpRequest.cs
- PolyBezierSegment.cs
- RectangleGeometry.cs
- ValidatingReaderNodeData.cs
- Mouse.cs
- Utilities.cs
- Button.cs
- QueryRewriter.cs
- BookmarkScopeInfo.cs
- DoubleAnimationUsingPath.cs