Language
Edit

IDataNode.SetNodeType(DataNodeType, Object) Method

Definition

Set the type, and the associated value for this node.

public void SetNodeType(MixedReality.Toolkit.Data.DataNodeType newNodeType, object value = default);
abstract member SetNodeType : MixedReality.Toolkit.Data.DataNodeType * obj -> unit
Public Sub SetNodeType (newNodeType As DataNodeType, Optional value As Object = Nothing)

Parameters

newNodeType
DataNodeType

The new type for this node

value
Object

The value to be associated with this node.

Remarks

The primary use of this is to convert an unassigned node to a node of a specific type.

If not unassigned, any previous value is lost. If the new node type is an array or a map, then these will be initialized to be empty collections even if they were already of those types.

If the new type is an array or a map, the value argument is ignored even if not null.

Applies to