EventSinkCollection.Add(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an event and returns its cookie.
public:
System::UInt32 Add(System::Object ^ o);
public:
unsigned int Add(Platform::Object ^ o);
unsigned int Add(winrt::Windows::Foundation::IInspectable const & o);
public uint Add (object o);
member this.Add : obj -> uint32
Public Function Add (o As Object) As UInteger
Parameters
- o
- Object
An object to be added to the event collection.
Returns
The cookie of the added event.
Remarks
The returned cookie can be used in the RemoveAt method.