Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

UnserializeObjects Method

NI TestStand™ 4.0 Help
April 2007

NI Part Number:
370052F-01

»View NI TestStand Product Info

Syntax

Engine.UnserializeObjects ( stream, reservedParam = 0, handlerType = ConflictHandler_Error)

Return Value

Object Array

Returns the array of property objects that were unserialized.

Purpose

Converts a string of serialized objects into an array of PropertyObjects.

Remarks

Call this method to convert the return value of SerializeObjects into an array of objects. Typically, you use the SerializeObjects and UnserializeObjects methods to put TestStand data on the Windows clipboard and to get data from it.

Use UnserializeObjectsAndTypes instead of UnserializeObjects if you intend to insert the array of property objects generated from the stream into a property object file. You should also add the types returned by UnserializeObjectsAndTypes to the file. You can add the types to the file by calling TypeUsageList.Union on the object that PropertyObjectFile.TypeUsageList returns. Pass the typesUsed output value as the unionTypeUsageList parameter to TypeUsageList.Union.

When you unserialize a step or a sequence, call Step.CreateNewUniqueStepId, Sequence.CreateNewUniqueStepIds, or Engine.CreateNewUniqueStepIds to replace the unique step Id with a new unique Id.

Parameters

stream As String

[In] Specifies the serialized objects created by SerializeObjects.

reservedParam As long

[In] Pass 0.

This parameter has a default value of 0.

handlerType As TypeConflictHandlerTypes

[In] Specifies how to handle type conflicts in the stream.

This parameter has a default value of ConflictHandler_Error.


See Also

Engine.CreateNewUniqueStepIds

PropertyObject.Serialize

PropertyObject.UnserializeEx

PropertyObjectFile.TypeUsageList

SerializeObjects

Sequence.CreateNewUniqueStepIds

Step.CreateNewUniqueStepId

TypeUsageList.Union

UnserializeObjectsAndTypes


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit