System::TypeInfo::GetCustomAttribute 方法

TypeInfo::GetCustomAttribute method

搜索具有指定类型并应用于当前对象表示的类型的自定义属性。

ObjectPtr System::TypeInfo::GetCustomAttribute(const TypeInfo &attributeType) const
ParameterType描述
attributeTypeconst TypeInfo&对表示要搜索属性类型的 TypeInfo 对象的常量引用

ReturnValue

指向表示已找到属性的对象的指针;如果没有匹配搜索条件的属性,则为空指针

另见