GH_State

References
public class GH_State : GH_ISerializable
Represents a single recorded document state. A state contains values for an arbitrary set of objects inside the document.

Constructors

GH_State

#
public GH_State()

GH_State

#
public GH_State(
GH_State
other
)

Properties

LastModified

#
Gets the date at which this state was last modified.
public DateTime LastModified { get; }

Name

#
Gets or sets the name of this state.
public string Name { get; set; }

StateCount

#
Gets the number of items stored in the state database.
public int StateCount { get; }

StateData

#
Gets a pointer to the internal database of states.
public SortedList<Guid, string> StateData { get; }

Indexers

Data

#
Gets the state data stored under the specified ID
public string this[
id
] { get; }

Data

#
Gets the state data stored under the specified index
public string this[
index
] { get; }

Methods

AddStateObject

#
Append a new object to the database.
public void AddStateObject(
obj,
Object to append.
obj_id
Instance GUID of object in document.
)

ClearStates

#
Removes all items from the state database.
public void ClearStates()

Read

#
public bool Read(
reader
)
Read

RemoveStateObject

#
Remove an object from the database.
public void RemoveStateObject(
obj_id
)

Write

#
public bool Write(
writer
)
Write