ConnectionConsumerAttribute.ID 属性
定义
获取一个字符串,该字符串表示使用者连接点的唯一标识。Gets a string that represents the unique identity of the consumer connection point.
public:
property System::String ^ ID { System::String ^ get(); };
public string ID { get; }
member this.ID : string
Public ReadOnly Property ID As String
属性值
指定给使用者连接点的唯一 ID。The unique ID assigned to the consumer connection point. 默认值是 Empty。The default value is Empty.
注解
如果通过连接点集合搜索,则应使用 ID 属性查找特定连接点。If searching through a connection point collection, you should use the ID property to locate a particular connection point. 此属性可用于区分同一名称的两个连接点。This property can be used to distinguish between two connection points of the same name. 使用者连接点可以具有相同的 DisplayName 属性值,但 ID 属性必须不同。Consumer connection points can have the same DisplayName property value, but the ID property must be different.