logo
  • 教程列表
  • SO官方文档
  • 使用现有的静态类
    • 使用 .Net Math Class
    • 添加类型
    • 立即创建新的 GUID
  1. StackOverflow 文档
  2. PowerShell 教程
  3. 使用现有的静态类
  4. 添加类型

添加类型

Created: November-22, 2018

按装配名称,添加库

Add-Type -AssemblyName "System.Math"

或按文件路径:

Add-Type -Path "D:\Libs\CustomMath.dll"

要使用添加的类型:

[CustomMath.NameSpace]::Method(param1, $variableParam, [int]castMeAsIntParam)
  • 立即创建新的 GUID
  • 使用 .Net Math Class

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明