Updates the event associated with the given 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 Sub SetAt ( _
    cookie As UInteger, _
    value As Object _
)
用法
Dim instance As EventSinkCollection
Dim cookie As UInteger
Dim value As Object
instance.SetAt(cookie, value)
public void SetAt(
    uint cookie,
    Object value
)
public:
void SetAt(
    unsigned int cookie, 
    Object^ value
)
member SetAt : 
        cookie:uint32 * 
        value:Object -> unit 
public function SetAt(
    cookie : uint, 
    value : Object
)
Parameters
- cookie
 Type: System.UInt32
 A cookie specifying an event.
- value
 Type: System.Object
 The value to which the event sink is set.
.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.