IVsDataObjectChangeEventsBroker.RaiseObjectAdded Method (Int32, String, array<Object )
Raises the ObjectAdded event or adds the event to the specified event group.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'Declaration
Sub RaiseObjectAdded ( _
groupId As Integer, _
typeName As String, _
identifier As Object() _
)
void RaiseObjectAdded(
int groupId,
string typeName,
Object[] identifier
)
void RaiseObjectAdded(
int groupId,
String^ typeName,
array<Object^>^ identifier
)
abstract RaiseObjectAdded :
groupId:int *
typeName:string *
identifier:Object[] -> unit
function RaiseObjectAdded(
groupId : int,
typeName : String,
identifier : Object[]
)
Parameters
groupId
Type: System.Int32A numerical value representing the event group identifier. Specify 0 to avoid event groups and raise the event immediately.
typeName
Type: System.StringThe name of the type of the data object for which to raise the event.
identifier
Type: array<System.Object[]An array containing identifier parts that uniquely identify the data object.
Exceptions
Exception | Condition |
---|---|
ArgumentOutOfRangeException | The groupId parameter is less than zero, or is different than zero and greater than the count of existing event groups. |
ArgumentException | Invalid group ID. The group ID could not be validated. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.