- Powershell Core 6.2 Cookbook
- Jan Hendrik Peters
- 142字
- 2021-06-24 15:14:23
How it works...
PowerShell will store either the value or the reference of an object in your variables. We'll learn about value types and reference types in Chapter 3, Working with Objects. For now, you should remember the term dot notation and simply try it with every variable you can find.
Using dot notation, individual properties and methods of one or more objects can be accessed, using expressions you don't even need to create a new variable. The entire expression is evaluated and the result is then used to access a property or a method.
In this recipe you have seen that the output that is formatted on screen does not contain all possible properties and methods. It is always crucial to fully explore the returned data, for example using the dot notation, in order to know what you are dealing with.