System::Attribute::GetCustomAttribute 方法

Attribute::GetCustomAttribute method

返回指定类型应用于指定类型的自定义属性。

static Object::ptr System::Attribute::GetCustomAttribute(const TypeInfo &type, const TypeInfo &attributeType)
参数类型描述
类型const TypeInfo&要检索的属性类型
attributeTypeconst TypeInfo&要检索的属性的类型

ReturnValue

检索到的属性;如果指定的类型没有该属性,则返回 null。

另见