Collapse the table of content
Expand the table of content
Expand Minimize
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ActivityGenerator.GenerateFromName Method (String, String)

Generates source code for a Workflow activity by using the named command. Introduced in Windows PowerShell 3.0.

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

Dim command As String
Dim activityNamespace As String
Dim returnValue As String

returnValue = ActivityGenerator.GenerateFromName(command, activityNamespace)

Public Shared Function GenerateFromName ( _
	command As String, _
	activityNamespace As String _
) As String
public static String GenerateFromName (
	String command, 
	String activityNamespace
public static function GenerateFromName (
	command : String, 
	activityNamespace : String
) : String



The command name to generate.


The namespace that will contain the activity.

Return Value

A string representing the C# source code of the generated activity.

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

© 2015 Microsoft