Nyelv

EventDescriptorCollection.Add(EventDescriptor) Metódus

Definíció

Hozzáad egy EventDescriptor elemet a gyűjtemény végéhez.

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

Paraméterek

value
EventDescriptor

A gyűjteményhez hozzáadni kívánt fájl EventDescriptor .

Válaszok

A gyűjteményen belüli pozíció EventDescriptor .

Kivételek

A gyűjtemény írásvédett.

Megjegyzések

Note

Az HostProtectionAttribute osztályra alkalmazott attribútum a következő Resources tulajdonságértéket tartalmazza: Synchronization. Ez HostProtectionAttribute nem érinti az asztali alkalmazásokat (amelyek általában egy ikonra duplán kattintva, egy parancs beírásával vagy egy URL-cím beírásával indulnak el a böngészőben). További információ: HostProtectionAttribute osztály vagy SQL Server Programozási és gazdagépvédelmi attribútumok.

A következőre érvényes: