PowerShell S2E35 (Using statement)

Описание к видео PowerShell S2E35 (Using statement)

(How to use a using statement in your powershell scripts)
*using
In this video I demonstrate how you can use a using statement in powershell. With the using statement you can import modules and namespaces inside of your scripts. Just like you do with C# inside of visual studio.

Code:
using namespace System.Net
using namespace System.Security.Authentication
using module mark

$person = [person]::new()
$person.name = "mark"
$person
[IPAddress]"10.0.0.3"
[Authentication]

Комментарии

Информация по комментариям в разработке