EventDescriptorCollection.Add(EventDescriptor) Метод
Определение
Добавляет объект EventDescriptor в конец коллекции.Adds an EventDescriptor to the end of the collection.
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
Параметры
- value
- EventDescriptor
Объект EventDescriptor, добавляемый в коллекцию.An EventDescriptor to add to the collection.
Возвращаемое значение
Позиция объекта EventDescriptor в коллекции.The position of the EventDescriptor within the collection.
Исключения
Коллекция только для чтения.The collection is read-only.
Комментарии
Примечание
HostProtectionAttributeАтрибут, примененный к этому классу, имеет следующее Resources значение свойства: Synchronization .The HostProtectionAttribute attribute applied to this class has the following Resources property value: Synchronization. Атрибут HostProtectionAttribute не оказывает влияния на настольные приложения (обычно запускаемые двойным щелчком значка, вводом команды или URL-адреса в браузере).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). Дополнительные сведения см. в разделе HostProtectionAttribute класс или SQL Server атрибуты защиты узла.For more information, see the HostProtectionAttribute class or SQL Server Programming and Host Protection Attributes.