Repository.XFRACAS.SerializeXMLObjectToByteArray

An helper function to serialize XMLs for import into XFRACAS through a byte array

Parameters
pData

pObject

Usage Example
' ' Success  = Success = MyRepository.ConnectToRepository("RepositoryFileNamePath") ' xmlObject = ' byteArray = ' SerializeSuccess SerializeSuccess = MyRepository.SerializeXMLObjectToByteArray(byteArray, xmlObject)

Reformatted Usage Example
Private WithEvents MyRepository As New Repository

Dim Success As Boolean = False Success = MyRepository.ConnectToRepository("RepositoryFileNamePath")

Dim xmlObject As Object = Nothing 'populate the xmlObject with values to import

Dim byteArray As Byte = Nothing

Dim SerializeSuccess As Boolean SerializeSuccess = MyRepository.SerializeXMLObjectToByteArray(byteArray, xmlObject)