Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Adds an event and returns its cookie.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)
Syntax
'Declaration
Public Function Add ( _
o As Object _
) As UInteger
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: ObjectAn object to be added to the event collection.
Return Value
Type: UInt32
The cookie of the added event.
Remarks
The returned cookie can be used in the RemoveAt method.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.