## SmartPtr::GetObjectNotNull method


获取当前引用的对象（如果有），否则抛出异常。

```cpp
T * System::SmartPtr<T>::GetObjectNotNull() const
```


### ReturnValue

指向被引用对象的原始指针。

## 另见

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