共用方式為


IVsDataObjectChangeEventsBroker.StartEventGroup 方法

啟動新的事件群組。

命名空間:  Microsoft.VisualStudio.Data.Services
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Function StartEventGroup ( _
    groupId As Integer _
) As Integer
int StartEventGroup(
    int groupId
)
int StartEventGroup(
    int groupId
)
abstract StartEventGroup : 
        groupId:int -> int
function StartEventGroup(
    groupId : int
) : int

參數

  • groupId
    類型:Int32

    表示父事件群組 ID 的數值。 指定 0 開始最上層事件群組或指定大於零的值開始這個群組底下的事件群組。

傳回值

類型:Int32
新的事件群組的 ID。

例外狀況

例外狀況 條件
ArgumentOutOfRangeException

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

ArgumentException

群組 ID 無效。

.NET Framework 安全性

請參閱

參考

IVsDataObjectChangeEventsBroker 介面

Microsoft.VisualStudio.Data.Services 命名空間