Namespaces

A namespace is used to organize classes into a hierarchy, often to group types with related functionalities.

In PowerShell, the system namespace is implicit. The System.AppDomain type was used previously; this command, used when introducing assemblies, can be shortened:

[AppDomain]::CurrentDomain.GetAssemblies() 

The same applies to types with longer names, such as System.Management.Automation.PowerShell, which can be shortened as follows:

[Management.Automation.PowerShell].Assembly
..................Content has been hidden....................

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