## SmartPtr::dynamic_pointer_cast method


使用 dynamic_cast 对指向的对象进行类型转换。

```cpp
template<class Y> SmartPtr<Y> System::SmartPtr<T>::dynamic_pointer_cast() const
```


| Parameter | 描述 |
| --- | --- |
| Y | 指向对象的目标类型。 |

### ReturnValue

始终处于共享模式的已更改类型指针。

## 另见

* Class [SmartPtr](../)
* Class [SmartPtr](../)
* Namespace [System](../../)
* Library [Aspose.Page for C++](../../../)
