## MemberInfo::AddAttribute method


向集合添加属性。

```cpp
void System::Reflection::MemberInfo::AddAttribute(const ObjectPtr &attribute)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| attribute | const ObjectPtr\& | 用于添加到当前成员的 [Attribute](../../../system/attribute/)。 |

## 另见

* Typedef [ObjectPtr](../objectptr/)
* Class [MemberInfo](../)
* Namespace [System::Reflection](../../)
* Library [Aspose.Font for C++](../../../)
