Properties and methods
In Chapter 4, Working with Objects in Powershell, the idea of using properties and methods was introduced. Get-Member
was used to list each of these.
Properties for objects derived from .NET classes, such as those for the System.Text.StringBuilder
class, are documented on MSDN:
Similarly, methods are described in detail, often with examples of usage (in C#, VB, F#, and so on):
These methods may be used as long as the argument lists can be satisfied. The 4th item on the list is difficult to leverage in PowerShell, as Char*
represents a pointer to an array of Unicode
characters. A pointer is a reference to a location in memory, something not often seen in PowerShell and beyond the scope of this chapter.