AddingNewEventArgs Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the AddingNewEventArgs class.
Overloads
AddingNewEventArgs() |
Initializes a new instance of the AddingNewEventArgs class using no parameters. |
AddingNewEventArgs(Object) |
Initializes a new instance of the AddingNewEventArgs class using the specified object as the new item. |
AddingNewEventArgs()
- Source:
- AddingNewEventArgs.cs
- Source:
- AddingNewEventArgs.cs
- Source:
- AddingNewEventArgs.cs
Initializes a new instance of the AddingNewEventArgs class using no parameters.
public:
AddingNewEventArgs();
public AddingNewEventArgs ();
Public Sub New ()
Remarks
The parameterless constructor sets the NewObject property to null
. A value that is null
indicates that, if the AddingNewEventHandler does not explicitly set this property, the collection will take standard steps to provide a new item to add to itself.
See also
Applies to
AddingNewEventArgs(Object)
- Source:
- AddingNewEventArgs.cs
- Source:
- AddingNewEventArgs.cs
- Source:
- AddingNewEventArgs.cs
Initializes a new instance of the AddingNewEventArgs class using the specified object as the new item.
public:
AddingNewEventArgs(System::Object ^ newObject);
public AddingNewEventArgs (object newObject);
public AddingNewEventArgs (object? newObject);
new System.ComponentModel.AddingNewEventArgs : obj -> System.ComponentModel.AddingNewEventArgs
Public Sub New (newObject As Object)
Parameters
Remarks
The AddingNewEventArgs constructor sets the NewObject property to the newObject
parameter. This object will be used as the new item to be added to the associated collection, unless this property is updated by the event handler.