XRObservableCollection.GetCollectionChangedEvent(IXRCustomEvent<XRCollectionChangedCustomEventArgs, IXRNotifyCollectionChanged> * *) (Compact 7)
3/12/2014
This method obtains the CollectionChanged event for the data source collection.
Syntax
HRESULT STDMETHODCALLTYPE GetCollectionChangedEvent(
IXRCustomEvent<XRCollectionChangedCustomEventArgs, IXRNotifyCollectionChanged> ** ppEvent)
Parameters
- ppEvent
[out] Pointer to an IXRCustomEvent object that represents the CollectionChanged event for the data source collection.
Return Value
The following table shows the possible return values.
Value | Description |
---|---|
S_OK |
The method was successful. |
E_POINTER |
The ppEvent parameter is not valid. |
Remarks
The CollectionChanged event object is stored in the m_pCollectionChangedEvent field in the data source collection. To raise the CollectionChanged event when you update the collection, call XRObservableCollection.OnCollectionChanged(XRCollectionChangedCustomEventArgs *).
Requirements
Header |
XRCollection.h, |