ActivityGenerator.GenerateFromModuleInfo Method

Generates source code for a Workflow activity by using the specified PSModuleInfo object. This SDK programming element is introduced in Windows PowerShell 3.0.


Namespace: Microsoft.PowerShell.Activities
Assembly: Microsoft.PowerShell.Activities (in Microsoft.PowerShell.Activities.dll)

'Usage
Dim moduleToProcess As PSModuleInfo
Dim activityNamespace As String
Dim returnValue As String()

returnValue = ActivityGenerator.GenerateFromModuleInfo(moduleToProcess, activityNamespace)

public:
static array<String^>^ GenerateFromModuleInfo (
	PSModuleInfo^ moduleToProcess, 
	String^ activityNamespace
)
public static String[] GenerateFromModuleInfo (
	PSModuleInfo moduleToProcess, 
	String activityNamespace
)
public static function GenerateFromModuleInfo (
	moduleToProcess : PSModuleInfo, 
	activityNamespace : String
) : String[]

Parameters

moduleToProcess

The PSModuleInfo object that specifies the target module.

activityNamespace

The namesspace to use for the target classes

Return Value

An array of strings that contains code elements to compile into an assembly.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

 

Target Platforms

Windows Developer Preview, Windows Server Developer Preview

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft