EventSinkCollection.Add(Object) 方法

定义

添加一个事件并返回其 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

参数

o
Object

要添加到事件集合的对象。

返回

UInt32

添加的事件的 cookie。

注解

返回的 cookie 可在方法中使用 RemoveAt

适用于