## TypeInfo::GetMethod method


获取具有指定名称的方法。

```cpp
SharedPtr<System::Reflection::MethodInfo> System::TypeInfo::GetMethod(const String &name) const
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| 名称 | const String\& | 要获取的方法名称。 |

### ReturnValue

方法描述符（如果未找到则为 null）。

## 另见

* Typedef [SharedPtr](../../sharedptr/)
* Class [MethodInfo](../../../system.reflection/methodinfo/)
* Class [String](../../string/)
* Class [TypeInfo](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
