Export class from module

Welcome Forums General PowerShell Q&A Export class from module

This topic contains 2 replies, has 3 voices, and was last updated by

 
Participant
2 years, 9 months ago.

  • Author
    Posts
  • #30031

    Participant
    Points: 0
    Rank: Member

    Is it possible to export a PSv5 class from a module like we can with functions?

  • #30034

    Keymaster
    Points: 1,785
    Helping HandTeam Member
    Rank: Community Hero

    Not in the current release.

  • #37339

    Participant
    Points: 0
    Rank: Member

    Use "using module .\MyClass.psm1"

The topic ‘Export class from module’ is closed to new replies.