Display: Cloud | List
Most Popular Tags
Results (11 total) All > powershell (x) > system.collections.queue (x)
System.Collections.Synchronized Method Sample with PowerShell (Queue.SyncRoot Property (System.Collections))
# show-queueproperties.ps1# Collections.queue sample using PowerShell# Thomas Lee - tfl@psp.co.uk # Create new queue object$myq = new-object system.collections.Queue$myq.Enqueue("Hello")$myq.Enqueue("World") # or a more powershell way$myq += "Jerry Garcia Rocks!!"# Show use of the properties of the Queue # First use count property"Creating and populating`$myq object with..."$i=0"`{0} entries
Last modified by Thomas Lee on 4/19/2008 12:33:29 PM
System.Collections.Queue Clear Method Sample with PowerShell (Stack.Clear Method (System.Collections))
# clear-stack.ps1# sample showing use of clear method with a system.collections.stack object# Thomas Lee - tfl@psp.co.uk # Create and initialise a new stack object$myStack = new-object system.collections.Stack$myStack.Push( "The" )$myStack.Push( "quick" )$myStack.Push( "brown" )$myStack.Push( "fox" )$myStack.Push( "jumped" ) # Displays the count and values of the Stack."At the start:" "Co
Last modified by Thomas Lee on 4/11/2008 10:32:46 PM
System.Collections.Stack Peek Method using PowerShell (Stack.Peek Method (System.Collections))
# get-stack2.ps1# sample shoing push and other stack processing using PowerShell# Thomas Lee - tfl@psp.co.uk# Create and initialise a new stack object$mystack = new-object system.collections.stack$myStack.Push( "The" )$myStack.Push( "quick" )$myStack.Push( "brown" )$myStack.Push( "fox" )# Display the Stack"Stack as start:"$myStack""# Pop an element from the Stack."(Pop)`t`t{0}" -f $myStack.Pop()"S
Last modified by Thomas Lee on 7/21/2008 5:48:24 PM
System.Collections.Queue Peek Method Sample with PowerShell (Queue.Peek Method (System.Collections))
# use-queue.ps1# Collections.queue sample using PowerShell# using the queue methods# Thomas Lee - tfl@psp.co.uk # Create new queue object$myq = new-object system.collections.Queue$myq.Enqueue("Hello")$myq.Enqueue("World")$myq.Enqueue("PowerShell Rocks") # Show queue"`$myq object at start:"$i=0"{0} entries in the queue as follows:" -f $myq.Count$myq | % {"entry {0}: {1}" -f $i++,$_ }""
Last modified by Thomas Lee on 4/9/2008 8:46:27 PM
System.Collections.Queue Dequeue Method Sample with PowerShell (Queue.Dequeue Method (System.Collections))
# use-queue.ps1# Collections.queue sample using PowerShell# using the queue methods# Thomas Lee - tfl@psp.co.uk # Create new queue object$myq = new-object system.collections.Queue$myq.Enqueue("Hello")$myq.Enqueue("World")$myq.Enqueue("PowerShell Rocks") # Show queue"`$myq object at start:"$i=0"{0} entries in the queue as follows:" -f $myq.Count$myq | % {"entry {0}: {1}" -f $i++,$_ }"" #E
Last modified by Thomas Lee on 4/9/2008 8:42:59 PM
System.Collections.Queue Enque method Sample with PowerShell (Queue.Enqueue Method (System.Collections))
# use-queue.ps1# Collections.queue sample using PowerShell# using the queue methods# Thomas Lee - tfl@psp.co.uk # Create new queue object$myq = new-object system.collections.Queue$myq.Enqueue("Hello")$myq.Enqueue("World")$myq.Enqueue("PowerShell Rocks") # Show queue"`$myq object at start:"$i=0"{0} entries in the queue as follows:" -f $myq.Count$myq | % {"entry {0}: {1}" -f $i++,$_ }""
Last modified by Thomas Lee on 4/9/2008 7:32:12 PM
System.Collections.Synchronized Method Sample with PowerShell (Queue.Synchronized Method (System.Collections))
# show-queueproperties.ps1# Collections.queue sample using PowerShell# Thomas Lee - tfl@psp.co.uk # Create new queue object$myq = new-object system.collections.Queue$myq.Enqueue("Hello")$myq.Enqueue("World") # or a more powershell way$myq += "Jerry Garcia Rocks!!" # Show use of the properties of the Queue # First use count property"Creating and populating`$myq object with..."$i=0"`{0} ent
Last modified by Thomas Lee on 4/9/2008 3:38:23 PM
System.Collections.IsSynchronized Sample with PowerShell (Queue.IsSynchronized Property (System.Collections))
# show-queueproperties.ps1# Collections.queue sample using PowerShell# Thomas Lee - tfl@psp.co.uk # Create new queue object$myq = new-object system.collections.Queue$myq.Enqueue("Hello")$myq.Enqueue("World") # or a more powershell way$myq += "Jerry Garcia Rocks!!" # Show use of the properties of the Queue # First use count property"Creating and populating`$myq object with..."$i=0"`{0} entrie
Last modified by Thomas Lee on 4/9/2008 3:29:08 PM
System.Collections.Queue Properties Sample with PowerShell (Queue Properties (System.Collections))
# show-queueproperties.ps1# Collections.queue sample using PowerShell# Thomas Lee - tfl@psp.co.uk # Create new queue object$myq = new-object system.collections.Queue$myq.Enqueue("Hello")$myq.Enqueue("World") # or a more powershell way$myq += "Jerry Garcia Rocks!!" # Show use of the properties of the Queue # First use count property"Creating and populating`$myq object with..."$i=0"`{0} entrie
Last modified by Thomas Lee on 4/9/2008 3:25:57 PM
Queue Sample using PowerShell (Queue.Count Property (System.Collections))
# show-queue.ps1# Collections.queue sample using PowerShell# Thomas Lee - tfl@psp.co.uk # Create new queue object$myq = new-object system.collections.Queue$myq.Enqueue("Hello")$myq.Enqueue("World")$myq.Enqueue("!") # Display the properties and values of the Queue"myq object"$i=0"`{0} entries in the queue as followP;" -f $myq.Count$myq | % {"entry {0}: {1}" -f $i++,$_ } This script produce
Last modified by Thomas Lee on 4/9/2008 1:54:01 PM
Page view tracker