The Add-Member command

Add-Member allows new members to be added to existing objects.

Starting with an empty object, it is possible to add new properties:

PS> $empty = New-Object Object
$empty | Add-Member -Name New -Value 'Hello world' -MemberType NoteProperty

Methods may be added as well. For example, a method to replace the word world.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.217.147.193