ES2.LoadQueue
public static Queue<T> LoadQueue<T>(string path, ES2Settings settings=null)
Parameters
[table th=”0″]T,”The type of the data in the Queue we want to load. Must be on the Supported Types list.
path,”The path where our data is stored. For more information, see Paths.”
settings,”Optional. A user-created ES2Settings object containing options not specified in path.”[/table]
Returns
[table th=”0″]Queue<T>,”Our loaded Queue.”[/table]
Description
Loads a Queue containing data of type T from the specified path.
C#
// Create a Queue of int values and save it. Queue myQueue<int> = new Queue<int>(); myQueue.Enqueue(1); myQueue.Enqueue(2); ES2.Save(myQueue, "myFile.txt?tag=myQueue"); // Load the Queue and re-assign it to our variable. myQueue = ES2.LoadQueue<int>("myFile.txt?tag=myQueue");
JS
// Create a Queue of int values and save it. var myQueue = new Queue.<int>(); myQueue.Enqueue(1); myQueue.Enqueue(2); ES2.Save(myQueue, "myFile.txt?tag=myQueue"); // Load the Queue and re-assign it to our variable. myQueue = ES2.LoadQueue.<int>("myFile.txt?tag=myQueue");