DataObjectChangeEvents.RaiseObjectAdded 方法

定义

重载

RaiseObjectAdded(String, Object[])

引发独立 ObjectAdded 事件,并指定对象类型和标识符。Raises a standalone ObjectAdded event, specifying the object type and identifier.

RaiseObjectAdded(Int32, String, Object[])

引发 ObjectAdded 特定事件组中的事件。Raises the ObjectAdded event within a specific event group.

RaiseObjectAdded(String, Object[])

引发独立 ObjectAdded 事件,并指定对象类型和标识符。Raises a standalone ObjectAdded event, specifying the object type and identifier.

public:
 void RaiseObjectAdded(System::String ^ typeName, cli::array <System::Object ^> ^ identifier);
public void RaiseObjectAdded (string typeName, object[] identifier);
member this.RaiseObjectAdded : string * obj[] -> unit
Public Sub RaiseObjectAdded (typeName As String, identifier As Object())

参数

typeName
String

添加的对象类型的名称。The name of the type of object that was added.

identifier
Object[]

已添加的对象的标识符。The identifier of the object that was added.

适用于

RaiseObjectAdded(Int32, String, Object[])

引发 ObjectAdded 特定事件组中的事件。Raises the ObjectAdded event within a specific event group.

public:
 abstract void RaiseObjectAdded(int groupId, System::String ^ typeName, cli::array <System::Object ^> ^ identifier);
public abstract void RaiseObjectAdded (int groupId, string typeName, object[] identifier);
abstract member RaiseObjectAdded : int * string * obj[] -> unit
Public MustOverride Sub RaiseObjectAdded (groupId As Integer, typeName As String, identifier As Object())

参数

groupId
Int32

应在其中引发事件的事件组的 ID,或为零,表示没有组。The ID of the event group in which the event should be raised, or zero to indicate no group.

typeName
String

添加的对象类型的名称。The name of the type of object that was added.

identifier
Object[]

已添加的对象的标识符。The identifier of the object that was added.

例外

groupId参数小于或等于零,或者大于当前分配的组数。The groupId parameter is less than or equal to zero or is greater than the current number of allocated groups.

groupId 参数无效。The groupId parameter is invalid.

适用于