EventSinkCollection.Add(Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
添加一个事件并返回其 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
要添加到事件集合的对象。
返回
添加的事件的 cookie。
注解
返回的 cookie 可在方法中使用 RemoveAt 。