[]
Serializes an object to XML using the ISerializeSupport interface.
public static bool SerializeObject(object o, string elementName, XmlTextWriter w)
Public Shared Function SerializeObject(o As Object, elementName As String, w As XmlTextWriter) As Boolean
Type | Name | Description |
---|---|---|
object | o | Object to serialize |
string | elementName | Name of XML element |
XmlTextWriter | w | XmlTextWriter object to which to save |
Type | Description |
---|---|
bool | true if successful; false otherwise |
Serializes an object to XML using the ISerializeSupport interface.
public static bool SerializeObject(object o, string elementName, XmlTextWriter w, Assembly callingAssembly)
Public Shared Function SerializeObject(o As Object, elementName As String, w As XmlTextWriter, callingAssembly As Assembly) As Boolean
Type | Name | Description |
---|---|---|
object | o | Object to serialize |
string | elementName | Name of XML element |
XmlTextWriter | w | XmlTextWriter object to which to save |
Assembly | callingAssembly | Specifies the assembly containing the implementation of the object |
Type | Description |
---|---|
bool | true if successful; false otherwise |
Serializes an object to XML using the ISerializeSupport interface.
public static bool SerializeObject(object o, Type saveInterface, string elementName, XmlTextWriter w)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter) As Boolean
Type | Name | Description |
---|---|---|
object | o | Object to serialize |
Type | saveInterface | Serialization interface to use |
string | elementName | Name of XML element |
XmlTextWriter | w | XmlTextWriter object to which to save |
Type | Description |
---|---|
bool | true if successful; false otherwise |
Serializes an object to XML using the ISerializeSupport interface.
public static bool SerializeObject(object o, Type saveInterface, string elementName, XmlTextWriter w, Assembly callingAssembly)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter, callingAssembly As Assembly) As Boolean
Type | Name | Description |
---|---|---|
object | o | Object to serialize |
Type | saveInterface | Serialization interface to use |
string | elementName | Name of XML element |
XmlTextWriter | w | XmlTextWriter object to which to save |
Assembly | callingAssembly | Specifies the assembly containing the implementation of the object |
Type | Description |
---|---|
bool | true if successful; false otherwise |
Serializes an object to XML using the ISerializeSupport interface.
public static bool SerializeObject(object o, Type saveInterface, string elementName, XmlTextWriter w, Assembly callingAssembly, object[] args)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter, callingAssembly As Assembly, args As Object()) As Boolean
Type | Name | Description |
---|---|---|
object | o | Object to serialize |
Type | saveInterface | Serialization interface to use |
string | elementName | Name of XML element |
XmlTextWriter | w | XmlTextWriter object to which to save |
Assembly | callingAssembly | Specifies the assembly containing the implementation of the object |
object[] | args | Arguments to pass to saveInterface.Serialize method (including w as first argument) |
Type | Description |
---|---|
bool | true if successful; false otherwise |
Serializes an object to XML using the ISerializeSupport interface.
public static bool SerializeObject(object o, Type saveInterface, string elementName, XmlTextWriter w, Assembly callingAssembly, object[] args, Hashtable restrictedNamedStyle, object addedNamedStyle)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter, callingAssembly As Assembly, args As Object(), restrictedNamedStyle As Hashtable, addedNamedStyle As Object) As Boolean
Type | Name | Description |
---|---|---|
object | o | Object to serialize |
Type | saveInterface | Serialization interface to use |
string | elementName | Name of XML element |
XmlTextWriter | w | XmlTextWriter object to which to save |
Assembly | callingAssembly | Specifies the assembly containing the implementation of the object |
object[] | args | Arguments to pass to saveInterface.Serialize method (including w as first argument) |
Hashtable | restrictedNamedStyle | |
object | addedNamedStyle |
Type | Description |
---|---|
bool | true if successful; false otherwise |
Serializes an object to XML using the ISerializeSupport interface.
public static bool SerializeObject(object o, Type saveInterface, string elementName, XmlTextWriter w, Assembly callingAssembly, object[] args, bool saveType)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter, callingAssembly As Assembly, args As Object(), saveType As Boolean) As Boolean
Type | Name | Description |
---|---|---|
object | o | Object to serialize |
Type | saveInterface | Serialization interface to use |
string | elementName | Name of XML element |
XmlTextWriter | w | XmlTextWriter object to which to save |
Assembly | callingAssembly | Specifies the assembly containing the implementation of the object |
object[] | args | Arguments to pass to saveInterface.Serialize method (including w as first argument) |
bool | saveType | Whether to save |
Type | Description |
---|---|
bool | true if successful; false otherwise |
Serializes an object to XML using the ISerializeSupport interface.
public static bool SerializeObject(object o, Type saveInterface, string elementName, XmlTextWriter w, Assembly callingAssembly, object[] args, bool saveType, Hashtable restrictedNamedStyles, object addedNamedStyles)
Public Shared Function SerializeObject(o As Object, saveInterface As Type, elementName As String, w As XmlTextWriter, callingAssembly As Assembly, args As Object(), saveType As Boolean, restrictedNamedStyles As Hashtable, addedNamedStyles As Object) As Boolean
Type | Name | Description |
---|---|---|
object | o | Object to serialize |
Type | saveInterface | Serialization interface to use |
string | elementName | Name of XML element |
XmlTextWriter | w | XmlTextWriter object to which to save |
Assembly | callingAssembly | Specifies the assembly containing the implementation of the object |
object[] | args | Arguments to pass to saveInterface.Serialize method (including w as first argument) |
bool | saveType | Whether to save |
Hashtable | restrictedNamedStyles | Arguments to pass to method interface.Serialize method |
object | addedNamedStyles | Arguments to pass to method interface.Serialize method |
Type | Description |
---|---|
bool | true if successful; false otherwise |