## DataObject class


Defines a format-independent mechanism for data transfer. Objects of this class should only be allocated using [System::MakeObject()](../../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../../system/smartptr/) pointer and use this pointer to pass it to functions as argument.

```cpp
class DataObject : public System::Object
```

## Methods

| Method | Description |
| --- | --- |
| [DataObject](./dataobject/)() |  |
| [get_Data](./get_data/)() |  |
| [get_Id](./get_id/)() |  |
| [set_Data](./set_data/)(SharedPtr\<System::Xml::XmlNodeList\>) |  |
| [set_Id](./set_id/)(String) |  |
## See Also

* Class [Object](../../system/object/)
* Namespace [System::Security::Cryptography::Xml](../)
* Library [Aspose.PDF for C++](../../)
