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