ConnectionConsumerAttribute.ConnectionPointType Egenskap

Definition

Hämtar anslutningspunktstypen för konsumentanslutningspunkten.

public:
 property Type ^ ConnectionPointType { Type ^ get(); };
public Type ConnectionPointType { get; }
member this.ConnectionPointType : Type
Public ReadOnly Property ConnectionPointType As Type

Egenskapsvärde

En Type som anger typen av anslutningspunkt.

Undantag

En ogiltig anslutningspunktstyp (en som inte härleds från ConsumerConnectionPoint klassen) användes.

Kommentarer

Den här egenskapen returnerar Type konsumentanslutningspunktens. Måste Type härledas från ConsumerConnectionPoint, och när du deklarerar parametern connectionPointType med ett ConnectionConsumerAttribute metadataelement på en motringningsmetod används en instans av den typ som du deklarerar för att skapa en anslutningspunkt i stället för standardklassen ConsumerConnectionPoint .

Gäller för