IDataNode.SetNodeType(DataNodeType, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.