## Console::SetError method


Assigns the specified object to the class' Error property.

```cpp
static void System::Console::SetError(const SharedPtr<System::IO::TextWriter> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const SharedPtr\<System::IO::TextWriter\>\& | The TextWrite object to assign to the Error property |

## See Also

* Typedef [SharedPtr](../../sharedptr/)
* Class [TextWriter](../../../system.io/textwriter/)
* Class [Console](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
