MSH G:\Monad> new-object system.data.dataTable gm..........
TypeName: System.Data.DataTable
Name MemberType Definition
---- ---------- ----------
AcceptChanges Method System.Void AcceptChanges()
add_ColumnChanged Method System.Void add_ColumnChanged(DataColumnChangeEventHandler value)
MSH > $dt = new-object system.data.datatable
MSH > $dt
MSH > $dt gm
get-member : No object has been specified to get-member.
At line:1 char:8
MSH > $DT.TableName = "test"
MSH > $dt
MSH > $dt.tablename
test
MSH > $dt gm
get-member : No object has been specified to get-member.
At line:1 char:8
MSH > $Col = new-object System.Data.DataColumn
MSH > $Col.ColumnName = "col1"
MSH > $DT.Columns.Add($Col)
MSH > $Col = new-object System.Data.DataColumn
MSH > $Col.ColumnName = "col2"
MSH > $DT.Columns.Add($Col)
MSH > $dt.columns
MSH > $dt.columns gm
TypeName: System.Data.DataColumn
Name MemberType Definition
---- ---------- ----------
MSH > $dt gm
get-member : No object has been specified to get-member.
At line:1 char:8
MSH > $dr = $dt.newrow()
MSH > $dr.col1 = "val1"
MSH > $dr.col2 = "1"
MSH > $dr = $dt.newrow()
MSH > $dr.col1 = "val2"
MSH > $dr.col2 = "2"
MSH > $DT.Rows.Add($DR)
MSH > $dt gm
TypeName: System.Data.DataRow
$MC = new-object system.management.ManagementClass win32_share
$MOC = $MC.GetInstances()
$MOC foreach {
$_.name
$null = "Trap Me Please"
trap{"Trap";$null[$null] = "Find Me Please"}
}
October 2005 November 2005 December 2005 January 2006 February 2006 March 2006 April 2006 May 2006 June 2006 July 2006 August 2006 September 2006 October 2006 November 2006 December 2006