Rediger

Del via


AddingNewEventArgs Constructors

Definition

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

newObject
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