AddingNewEventArgs AddingNewEventArgs AddingNewEventArgs AddingNewEventArgs Constructors

Definition

Overloads

AddingNewEventArgs() AddingNewEventArgs() AddingNewEventArgs()

Initializes a new instance of the AddingNewEventArgs class using no parameters.

AddingNewEventArgs(Object) AddingNewEventArgs(Object) AddingNewEventArgs(Object) AddingNewEventArgs(Object)

Initializes a new instance of the AddingNewEventArgs class using the specified object as the new item.

AddingNewEventArgs() AddingNewEventArgs() AddingNewEventArgs()

Initializes a new instance of the AddingNewEventArgs class using no parameters.

public:
 AddingNewEventArgs();
public AddingNewEventArgs ();
Public Sub New ()

Remarks

The default 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

AddingNewEventArgs(Object) AddingNewEventArgs(Object) AddingNewEventArgs(Object) AddingNewEventArgs(Object)

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);
new System.ComponentModel.AddingNewEventArgs : obj -> System.ComponentModel.AddingNewEventArgs
Public Sub New (newObject As Object)

Parameters

newObject
Object Object Object Object

An Object to use as the new item value.

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.

See Also

Applies to