Sets the specified events for the current browse object.
Namespace:  Microsoft.VisualStudio.Data.Framework
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
声明
Public Sub SetEvents ( _
    ParamArray events As EventDescriptor() _
)
public void SetEvents(
    params EventDescriptor[] events
)
public:
void SetEvents(
    ... array<EventDescriptor^>^ events
)
member SetEvents : 
        events:EventDescriptor[] -> unit 
public function SetEvents(
    ... events : EventDescriptor[]
)
Parameters
- events
Type: array<System.ComponentModel.EventDescriptor[]
An array of EventDescriptor event objects to 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.