Upraviť

Zdieľať cez


EventDescriptorCollection.Add(EventDescriptor) Method

Definition

Adds an EventDescriptor to the end of the collection.

public:
 int Add(System::ComponentModel::EventDescriptor ^ value);
public int Add (System.ComponentModel.EventDescriptor value);
public int Add (System.ComponentModel.EventDescriptor? value);
member this.Add : System.ComponentModel.EventDescriptor -> int
Public Function Add (value As EventDescriptor) As Integer

Parameters

value
EventDescriptor

An EventDescriptor to add to the collection.

Returns

The position of the EventDescriptor within the collection.

Exceptions

The collection is read-only.

Remarks

Note

The HostProtectionAttribute attribute applied to this class has the following Resources property value: Synchronization. The HostProtectionAttribute does not affect desktop applications (which are typically started by double-clicking an icon, typing a command, or entering a URL in a browser). For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.

Applies to