Bagikan melalui


EventSinkCollection.Add(Object) Method

Definition

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.

Applies to