AddingNewEventArgs 构造函数

定义

初始化 AddingNewEventArgs 类的新实例。Initializes a new instance of the AddingNewEventArgs class.

重载

AddingNewEventArgs()

不使用任何参数初始化 AddingNewEventArgs 类的新实例。Initializes a new instance of the AddingNewEventArgs class using no parameters.

AddingNewEventArgs(Object)

使用指定的对象作为新项初始化 AddingNewEventArgs 类的新实例。Initializes a new instance of the AddingNewEventArgs class using the specified object as the new item.

AddingNewEventArgs()

不使用任何参数初始化 AddingNewEventArgs 类的新实例。Initializes a new instance of the AddingNewEventArgs class using no parameters.

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

注解

无参数构造函数将 NewObject 属性设置为 nullThe parameterless constructor sets the NewObject property to null. 一个 null 的值,指示如果 AddingNewEventHandler 未显式设置此属性,则集合将采用标准步骤来提供要添加到其自身的新项。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.

另请参阅

AddingNewEventArgs(Object)

使用指定的对象作为新项初始化 AddingNewEventArgs 类的新实例。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)

参数

newObject
Object

要用作新项的值的 ObjectAn Object to use as the new item value.

注解

AddingNewEventArgs 构造函数将 NewObject 属性设置为 newObject 参数。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.

另请参阅

适用于