Equivalent to C#'s “using” keyword in powershell?

前端 未结 9 1766
臣服心动
臣服心动 2020-12-04 14:13

When I use another object in the .net-Framework in C# I can save a lot of typing by using the using directive.

using FooCompany.Bar.Qux.Assembly.With.Ridicul         


        
9条回答
  •  有刺的猬
    2020-12-04 14:47

    #Requires -Version 5
    using namespace System.Management.Automation.Host
    #using module
    

提交回复
热议问题