EventSinkCollection.Add Method

Adds an event and returns its cookie.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

声明
Public Function Add ( _
    o As Object _
) As UInteger
用法
Dim instance As EventSinkCollection
Dim o As Object
Dim returnValue As UInteger

returnValue = instance.Add(o)
public uint Add(
    Object o
)
public:
unsigned int Add(
    Object^ o
)
member Add : 
        o:Object -> uint32 
public function Add(
    o : Object
) : uint

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

EventSinkCollection Members

Microsoft.VisualStudio.Shell Namespace