ConnectionConsumerAttribute.ConnectionPointType 属性
定义
获取使用者连接点的连接点类型。Gets the connection point type of the consumer connection point.
public:
property Type ^ ConnectionPointType { Type ^ get(); };
public Type ConnectionPointType { get; }
member this.ConnectionPointType : Type
Public ReadOnly Property ConnectionPointType As Type
属性值
指示连接点类型的 Type。A Type that indicates the type of the connection point.
例外
使用的连接点类型(不是从 ConsumerConnectionPoint 类派生的)无效。An invalid connection point type (one that does not derive from the ConsumerConnectionPoint class) was used.
注解
此属性返回 Type 使用者连接点的。This property returns the Type of the consumer connection point. Type必须从派生 ConsumerConnectionPoint ,并且当你 connectionPointType 使用回调方法中的 ConnectionConsumerAttribute 元数据元素声明参数时,将使用你声明的类型的实例来创建连接点而不是标准 ConsumerConnectionPoint 类。The Type must derive from ConsumerConnectionPoint, and when you declare the connectionPointType parameter with a ConnectionConsumerAttribute metadata element on a callback method, an instance of the type you declare is used to create a connection point instead of the standard ConsumerConnectionPoint class.