共用方式為


ModelComponentCollection.CollectionChanged 事件

此 API 支援 SQL Server 2012 基礎結構,但無法直接從您的程式碼使用。

Occurs when the collection changes.

命名空間:  Microsoft.AnalysisServices
組件:  Microsoft.AnalysisServices (在 Microsoft.AnalysisServices.dll 中)

語法

'宣告
Public Event CollectionChanged As CollectionChangeEventHandler
'用途
Dim instance As ModelComponentCollection 
Dim handler As CollectionChangeEventHandler 

AddHandler instance.CollectionChanged, handler
public event CollectionChangeEventHandler CollectionChanged
public:
 event CollectionChangeEventHandler^ CollectionChanged {
    void add (CollectionChangeEventHandler^ value);
    void remove (CollectionChangeEventHandler^ value);
}
member CollectionChanged : IEvent<CollectionChangeEventHandler,
    CollectionChangeEventArgs>
JScript 支援事件的使用,但不支援新事件的宣告。

請參閱

參考

ModelComponentCollection 類別

Microsoft.AnalysisServices 命名空間