DataObjectChangeEvents.RaiseObjectAdded Method (Int32, String, [])

Raises the ObjectAdded event within a specific event group.

Namespace:  Microsoft.VisualStudio.Data
Assembly:  Microsoft.VisualStudio.Data (in Microsoft.VisualStudio.Data.dll)

Syntax

'宣言
Public MustOverride Sub RaiseObjectAdded ( _
    groupId As Integer, _
    typeName As String, _
    identifier As Object() _
)
'使用
Dim instance As DataObjectChangeEvents
Dim groupId As Integer
Dim typeName As String
Dim identifier As Object()

instance.RaiseObjectAdded(groupId, typeName, _
    identifier)
public abstract void RaiseObjectAdded(
    int groupId,
    string typeName,
    Object[] identifier
)
public:
virtual void RaiseObjectAdded(
    int groupId, 
    String^ typeName, 
    array<Object^>^ identifier
) abstract
public abstract function RaiseObjectAdded(
    groupId : int, 
    typeName : String, 
    identifier : Object[]
)

Parameters

  • groupId
    Type: System.Int32

    The ID of the event group in which the event should be raised, or zero to indicate no group.

  • typeName
    Type: System.String

    The name of the type of object that was added.

  • identifier
    Type: []

    The identifier of the object that was added.

Exceptions

Exception Condition
ArgumentOutOfRangeException

The groupId parameter is less than or equal to zero or is greater than the current number of allocated groups.

ArgumentException

The groupId parameter is invalid.

Permissions

See Also

Reference

DataObjectChangeEvents Class

DataObjectChangeEvents Members

RaiseObjectAdded Overload

Microsoft.VisualStudio.Data Namespace