الفئة System::Xml::Serialization::XmlSerializer

XmlSerializer class

يؤدي تسلسل وتفكيك (serialization و deserialization) للكائنات إلى داخل وخارج مستندات XML. يجب تخصيص كائنات هذه الفئة فقط باستخدام الدالة System::MakeObject(). لا تقم بإنشاء نسخة من هذا النوع على المكدس أو باستخدام عامل new، حيث سيؤدي ذلك إلى أخطاء وقت التشغيل أو أعطال التأكيد. احرص دائمًا على تغليف هذه الفئة داخل مؤشر System::SmartPtr واستخدام هذا المؤشر لتمريره إلى الدوال كمعامل.

class XmlSerializer : public System::Object

الطرق

طريقةالوصف
virtual CanDeserialize(System::SharedPtr<XmlReader>)يتحقق مما إذا كان القارئ المحدد في حالة قابلة للتفكيك.
Deserialize(System::SharedPtr<IO::Stream>)يفكّك مستند XML إلى كائن.
Deserialize(System::SharedPtr<IO::TextReader>)يفكّك مستند XML إلى كائن.
Deserialize(System::SharedPtr<XmlReader>)يفكّك مستند XML إلى كائن.
Deserialize(System::SharedPtr<XmlReader>, String)يفكّك مستند XML إلى كائن.
Serialize(System::SharedPtr<IO::Stream>, System::SharedPtr<Object>)يسلسل المستند إلى XML.
Serialize(System::SharedPtr<IO::TextWriter>, System::SharedPtr<Object>)يسلسل المستند إلى XML.
Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>)يسلسل المستند إلى XML.
Serialize(System::SharedPtr<IO::Stream>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>)يسلسل المستند إلى XML.
Serialize(System::SharedPtr<IO::TextWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>)يسلسل المستند إلى XML.
Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>)يسلسل المستند إلى XML.
Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>, String)يسلسل المستند إلى XML.
Serialize(System::SharedPtr<XmlWriter>, System::SharedPtr<Object>, System::SharedPtr<XmlSerializerNamespaces>, String, String)يسلسل المستند إلى XML.

الحقول

حقلالوصف
static EncodingNamespaceترميز اسم مساحة الاسم.
static WsdlNamespaceRTTI.
static WsdlTypesNamespaceاسم مساحة أسماء أنواع WSDL.

انظر أيضًا