引发 ObjectDeleted 事件或将该事件添加到指定的事件组。
命名空间: Microsoft.VisualStudio.Data.Services
程序集: Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)
语法
声明
Sub RaiseObjectDeleted ( _
groupId As Integer, _
typeName As String, _
identifier As Object() _
)
void RaiseObjectDeleted(
int groupId,
string typeName,
Object[] identifier
)
void RaiseObjectDeleted(
int groupId,
String^ typeName,
array<Object^>^ identifier
)
abstract RaiseObjectDeleted :
groupId:int *
typeName:string *
identifier:Object[] -> unit
function RaiseObjectDeleted(
groupId : int,
typeName : String,
identifier : Object[]
)
参数
- groupId
类型:System.Int32
表示事件组标识符的一个数值。指定0避免事件组并立即引发事件。
- typeName
类型:System.String
数据对象类型的名称将引发事件。
- identifier
类型:array<System.Object[]
包含唯一标识数据对象的标识符部件的数组。
异常
异常 | 条件 |
---|---|
ArgumentOutOfRangeException | groupId 参数小于零或不同于零和大于计数现有事件组。 |
ArgumentException | 无效组标识符。该组标识符无法验证。 |
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。