EventSinkCollection.Item Property

Gets or sets the specified cookie from the collection.

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

Syntax

'宣言
Public Default Property Item ( _
    cookie As UInteger _
) As Object
'使用
Dim instance As EventSinkCollection
Dim cookie As UInteger
Dim value As Object

value = instance(cookie)

instance(cookie) = value
public Object this[
    uint cookie
] { get; set; }
public:
property Object^ default[unsigned int cookie] {
    Object^ get (unsigned int cookie);
    void set (unsigned int cookie, Object^ value);
}
JScript does not support indexed properties.

Parameters

Property Value

Type: System.Object

The cookie.

Remarks

This collection is 1-based.

Permissions

See Also

Reference

EventSinkCollection Class

EventSinkCollection Members

Microsoft.VisualStudio.Shell Namespace