ActivityGenerator.GenerateFromModuleInfo(PSModuleInfo, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a complete activity source file from a module.
public:
static cli::array <System::String ^> ^ GenerateFromModuleInfo(System::Management::Automation::PSModuleInfo ^ moduleToProcess, System::String ^ activityNamespace);
public static string[] GenerateFromModuleInfo (System.Management.Automation.PSModuleInfo moduleToProcess, string activityNamespace);
static member GenerateFromModuleInfo : System.Management.Automation.PSModuleInfo * string -> string[]
Public Shared Function GenerateFromModuleInfo (moduleToProcess As PSModuleInfo, activityNamespace As String) As String()
Parameters
- moduleToProcess
- PSModuleInfo
- activityNamespace
- String
The namesspace to use for the target classes
Returns
String[]
An array of code elements to compile into an assembly