System::Attribute::GetCustomAttribute 方法

Attribute::GetCustomAttribute method

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

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

ReturnValue

检索到的属性,若指定类型没有该属性则为 null。

另见