共用方式為


IVsDataObjectChangeEventsBroker.RaiseObjectChanged 方法 (Int32, String, array<Object[], IDictionary<String, Object>, array<Object[], IDictionary<String, Object>)

引發事件 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
    類型:Int32

    表示事件群組識別項的數值。 指定 0 避免事件群組並立即引發事件。

  • typeName
    類型:String

    資料物件的型別名稱就可以引發事件。

  • identifier
    類型:array<Object[]

    包含唯一識別舊資料物件的組件識別項的陣列。

  • propertyValues
    類型:IDictionary<String, Object>

    已變更之資料物件的舊的屬性值。

  • newIdentifier
    類型:array<Object[]

    包含唯一識別新的資料物件的組件識別項的陣列。

  • newPropertyValues
    類型:IDictionary<String, Object>

    已變更之資料物件的新屬性值。

例外狀況

例外狀況 條件
ArgumentOutOfRangeException

groupId 參數小於零或不同零且大於計數現有事件群組。

ArgumentException

無效的識別項。 群組 ID 無法驗證。

.NET Framework 安全性

請參閱

參考

IVsDataObjectChangeEventsBroker 介面

RaiseObjectChanged 多載

Microsoft.VisualStudio.Data.Services 命名空間