DataObjectChangeEvents.RaiseObjectAdded 方法 (Int32, String, array<Object )
在特定事件群組內 ObjectAdded 引發事件。
命名空間: Microsoft.VisualStudio.Data
組件: Microsoft.VisualStudio.Data (在 Microsoft.VisualStudio.Data.dll 中)
語法
'宣告
Public MustOverride Sub RaiseObjectAdded ( _
groupId As Integer, _
typeName As String, _
identifier As Object() _
)
public abstract void RaiseObjectAdded(
int groupId,
string typeName,
Object[] identifier
)
public:
virtual void RaiseObjectAdded(
int groupId,
String^ typeName,
array<Object^>^ identifier
) abstract
abstract RaiseObjectAdded :
groupId:int *
typeName:string *
identifier:Object[] -> unit
public abstract function RaiseObjectAdded(
groupId : int,
typeName : String,
identifier : Object[]
)
參數
- groupId
型別:System.Int32
事件中應該引發事件群組的指定群組的 ID。則為零。
- typeName
型別:System.String
物件的型別名稱加入。
- identifier
型別:array<System.Object[]
將物件的識別項。
例外狀況
例外狀況 | 條件 |
---|---|
ArgumentOutOfRangeException | groupId 參數大於配置的群組的目前數目小於或等於零或大於。 |
ArgumentException | groupId 參數是無效的。 |
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。