## XmlRootAttribute class


属性対象を XML のルート要素としてマークし、その XML シリアライズを制御します。このクラスのオブジェクトは [System::MakeObject()](../../system/makeobject/) 関数を使用してのみ割り当てるべきです。スタック上や operator new を使用してインスタンスを作成しないでください。実行時エラーやアサーション違反が発生します。常にこのクラスを [System::SmartPtr](../../system/smartptr/) ポインタでラップし、そのポインタを関数の引数として渡すようにしてください。

```cpp
class XmlRootAttribute : public System::Object
```

## メソッド

| メソッド | 説明 |
| --- | --- |
| [XmlRootAttribute](./xmlrootattribute/)() | 新しい [XmlRootAttribute](./) クラスのインスタンスを構築します。 |
| [XmlRootAttribute](./xmlrootattribute/)(const System::String\&) | 新しい [XmlRootAttribute](./) クラスのインスタンスを構築し、指定された要素名で初期化します。 |
## 参照

* Class [Object](../../system/object/)
* Namespace [System::Xml::Serialization](../)
* Library [Aspose.Page for C++](../../)
