EventSinkCollection.Item Property
Gets or sets the specified cookie from the collection.
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
'Declaración
Public Default Property Item ( _
cookie As UInteger _
) As Object
Get
Set
'Uso
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);
}
member Item : Object with get, set
JScript does not support indexed properties.
Parameters
- cookie
Type: System.UInt32
The cookie to get.
Property Value
Type: System.Object
The cookie.
Remarks
This collection is 1-based.
.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.