ConsumerConnectionPointCollection.Contains(ConsumerConnectionPoint) Methode

Definition

Bestimmt, ob das angegebene ConsumerConnectionPoint-Objekt in der Auflistung vorhanden ist.

public:
 bool Contains(System::Web::UI::WebControls::WebParts::ConsumerConnectionPoint ^ connectionPoint);
public bool Contains (System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint connectionPoint);
member this.Contains : System.Web.UI.WebControls.WebParts.ConsumerConnectionPoint -> bool
Public Function Contains (connectionPoint As ConsumerConnectionPoint) As Boolean

Parameter

connectionPoint
ConsumerConnectionPoint

Der zu suchende Verbindungspunkt.

Gibt zurück

true, wenn der Consumerverbindungspunkt in der Auflistung enthalten ist, andernfalls false.

Hinweise

Verwenden Sie diese Methode, um zu bestimmen, ob ein ConsumerConnectionPoint Objekt in der aktuellen ConsumerConnectionPointCollection Auflistung enthalten ist. Diese Methode wird häufig verwendet, um zu testen, ob ein ConsumerConnectionPoint Objekt vorhanden ist, bevor eine Aufgabe ausgeführt wird, z. B. das Hinzufügen eines Menüelements zu oder das Entfernen eines Menüelements aus der Auflistung.

Gilt für: