次の方法で共有


EventSinkCollection.Add Method

Adds an event and returns its cookie.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.11.0 (in Microsoft.VisualStudio.Shell.11.0.dll)

Syntax

'宣言
Public Function Add ( _
    o As Object _
) As UInteger
public uint Add(
    Object o
)

Parameters

  • o
    Type: System.Object
    An object to be added to the event collection.

Return Value

Type: System.UInt32
The cookie of the added event.

Remarks

The returned cookie can be used in the RemoveAt method.

.NET Framework Security

See Also

Reference

EventSinkCollection Class

Microsoft.VisualStudio.Shell Namespace