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:
![](https://static.packt-cdn.com/products/9781787126305/graphics/f658b76f-3b96-4b35-81d5-2c3d5e45fd95.png)
Similarly, methods are described in detail, often with examples of usage (in C#, VB, F#, and so on):
![](https://static.packt-cdn.com/products/9781787126305/graphics/b3f51370-1e85-41ed-90d5-93e884782e6a.png)
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.